-
src/xpdev/gen_defs.h
From
rswindell@VERT to
CVS commit on Tue Aug 28 10:20:00 2018
src/xpdev gen_defs.h 1.76 1.77
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv13610
Modified Files:
gen_defs.h
Log Message:
Wrap use of FREE_AND_NULL argument in parens, just because it's best practice and no actual observed problem.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Wed Jan 30 14:13:00 2019
src/xpdev gen_defs.h 1.77 1.78
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv8780
Modified Files:
gen_defs.h
Log Message:
Handy macros to calculate the number of digits in a given integer:
HEX_DIGITS() and DEC_DIGITS()
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tue Jul 9 09:05:32 2019
src/xpdev gen_defs.h 1.78 1.79
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv4868
Modified Files:
gen_defs.h
Log Message:
Fix FREE_AND_NULL() so it can be used wherever a function is... especially:
if (fg)
FREE_AND_NULL(fd);
else
FREE_AND_NULL(bg);
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tue Jul 16 09:43:08 2019
src/xpdev gen_defs.h 1.79 1.80
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv30629
Modified Files:
gen_defs.h
Log Message:
Function-like-ify SAFECAT()
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Fri Apr 17 09:30:06 2020
src/xpdev gen_defs.h 1.81 1.82
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv18212
Modified Files:
gen_defs.h
Log Message:
This file is still used when building a 16-bit MS-DOS program (DOSXTRN.EXE)
so put the 64-bit integer stuff in an #ifndef __MSDOS__ block to enable the build to succeed.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Mon May 25 11:26:36 2020
src/xpdev gen_defs.h 1.82 1.83
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv24748
Modified Files:
gen_defs.h
Log Message:
Microsoft isn't typedef'ing ssize_t for us.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tue May 26 06:07:21 2020
src/xpdev gen_defs.h 1.83 1.84
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv4468
Modified Files:
gen_defs.h
Log Message:
Borland builds also need ssize_t typedef'd. Watcom can come along for the ride.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sat Aug 15 08:57:51 2020
src/xpdev gen_defs.h 1.84 1.85
Update of /cvsroot/sbbs/src/xpdev
In directory cvs:/tmp/cvs-serv32380
Modified Files:
gen_defs.h
Log Message:
Resolve GCC compile warnings on 32-bit Linux by insuring that PRId/uOFF
expands to "ld"/"lu", respectively since off_t is a long (not an int): examples:
ftpsrvr.c:1374:77: warning: format '%d' expects argument of type 'int', but argument 6 has type 'off_t {aka long int}' [-Wformat=]
lprintf(LOG_WARNING, "%04d <%s> !DATA cannot send file (%s) with size of %"PRIdOFF" bytes"
websrvr.c:6063:45: warning: format '%u' expects argument of type 'unsigned int', but argument 5 has type 'off_t {aka long int}' [-Wformat=]
lprintf(LOG_INFO,"%04d Sending file: %s (%"PRIuOFF" bytes)"
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Deuce@VERT to
Git commit to sbbs/master on Fri Nov 20 21:12:43 2020
-
From
Deuce@VERT to
Git commit to sbbs/master on Fri Nov 20 21:13:29 2020
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sat May 22 11:52:38 2021
https://gitlab.synchro.net/main/sbbs/-/commit/c5bdb26443df75e6d03eebdb
Modified Files:
src/xpdev/gen_defs.h
Log Message:
Character 255 is a non-breaking space in CP437
Now IS_WHITESPACE() will return true for that char and this allows things like truncsp() to truncate trailing white-space (e.g. from a FILE_ID.DIZ), even if it contains a terminating 0xFF character for some unknown reason.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Mon Nov 22 15:53:40 2021
-
From
Deuc¿@VERT to
Git commit to main/sbbs/master on Fri Feb 25 08:05:26 2022
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Tue Jan 24 12:44:00 2023
https://gitlab.synchro.net/main/sbbs/-/commit/c0e857c930feb9833d40617f
Modified Files:
src/xpdev/gen_defs.h
Log Message:
Make SAFECOPY() even safer by not passing NULL destination to strncpy()
This should resolve (new) CID 434884 and 434885.
Also, remove the SAFECOPY_USES_SPRINTF check/block - nobody enables this.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on ChromeOS)@VERT to
Git commit to main/sbbs/master on Thu Jan 26 23:30:10 2023
-
From
Rob Swindell (on ChromeOS)@VERT to
Git commit to main/sbbs/master on Thu Jan 26 23:45:00 2023
https://gitlab.synchro.net/main/sbbs/-/commit/ea99ca801e63268479f91e94
Modified Files:
src/xpdev/gen_defs.h
Log Message:
Add XSAFECOPY (extra safe copy) that won't pass NULL to strncpy()
The previous (reverted) change to SAFECOPY would double-resolve the (src) argument and caused weird side effects.
Again, removes SAFECOPY_USES_SNPRINTF since it was unused.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Deuc¿@VERT to
Git commit to main/sbbs/master on Fri Mar 22 11:38:39 2024
https://gitlab.synchro.net/main/sbbs/-/commit/ffd5385d1510e7da8a547970
Modified Files:
src/xpdev/gen_defs.h
Log Message:
Use strlcpy() for X?SAFECOPY() macros.
Also, for DEBUG builds, add a static assertion that
sizeof(dst) != sizeof(void*) to catch the most common breakage.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Deuc¿@VERT to
Git commit to main/sbbs/master on Fri Mar 22 11:42:26 2024
-
From
Rob Swindell (on Debian Linux)@VERT to
Git commit to main/sbbs/master on Fri Mar 22 11:48:03 2024
-
From
Deuc¿@VERT to
Git commit to main/sbbs/master on Fri Mar 22 11:48:38 2024
-
From
Deuc¿@VERT to
Git commit to main/sbbs/master on Fri Mar 22 11:50:56 2024
-
From
Deuc¿@VERT to
Git commit to main/sbbs/master on Fri Mar 22 11:53:02 2024
-
From
Deuc¿@VERT to
Git commit to main/sbbs/master on Fri Mar 22 23:11:54 2024
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Sun Mar 24 17:58:57 2024