cvs commit: src/lib/libc/stdio floatio.h vfprintf.c vfwprintf.c
David Schultz
das at FreeBSD.org
Sat Apr 5 14:03:45 PST 2003
das 2003/04/05 14:03:43 PST
FreeBSD src repository
Modified files:
lib/libc/stdio floatio.h vfprintf.c vfwprintf.c
Log:
Correct some buffer sizes.
- __vfprintf()'s 'buf' has never been used for floating point, so
don't define it in terms of (incorrect) constants describing
floating point numbers. The actual size needed depends on
sizeof(uintmax_t) and locale details, so I slightly overestimated.
- We don't need a 308-character buffer to store the string "308".
With long doubles and %a we need more than three characters, though.
Revision Changes Path
1.3 +11 -4 src/lib/libc/stdio/floatio.h
1.53 +16 -10 src/lib/libc/stdio/vfprintf.c
1.8 +15 -9 src/lib/libc/stdio/vfwprintf.c
More information about the cvs-src
mailing list