mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
21ca232974
This patch addresses a number of problems with printf-like functions. Most of them are %x formats applied to pointers (which could be a problem depending on the architecture I would assume). There is a %p format for pointers on many machines but I don't know if it applies to all supported OpenAFS platforms so I didn't go that route. There is a buffer overflow fix to ktime.c There are a couple places where incorrect format characters were used. One call had two arguments swapped. Other fixes include the use of PrintInode() and %s formats for printing inode numbers. The code was inconsistent in this regard -- sometimes PrintInode() was used, sometimes it was side-stepped. There is one place where a local shadowed another variable, so I renamed the local. The last segment points out that an fdset need not be anything printable with an integer format. -- Joe Buehler Comments - The fdset comment relates to a WinSock only file on which the size is a pointer to int. Modified the source to use a %p instead of %x as it is supported on Windows. Added an assert(p != NULL) to src/rx/rx_packet.c |
||
---|---|---|
.. | ||
.cvsignore | ||
butm_test.c | ||
butm.vdoc | ||
config | ||
error_macros.h | ||
file_tm.c | ||
Makefile.in | ||
NTMakefile | ||
test_ftm.c |