ittvax.328: Bugs in /usr/lib/lint/llib-lc
utzoo!decvax!harpo!duke!trt
utzoo!decvax!harpo!duke!trt
Fri May 14 12:32:39 AEST 1982
** Never use the return value of sprintf **
sprintf(III) returns char * in UNIX V7, int in UNIX 32V.
The first version of A news did "xerror(sprintf(...));"
but for portability that all had to be changed to
sprintf(bfr, ...); xerror(bfr);
llib-lc and stdio.h could indicate that sprintf returns "void",
or perhaps a pointer to some bizarre structure
so any use of the value will be flagged as an error.
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list