Date: Sat, 5 Apr 2003 14:03:43 -0800 (PST) From: David Schultz <das@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/stdio floatio.h vfprintf.c vfwprintf.c Message-ID: <200304052203.h35M3hK0025666@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304052203.h35M3hK0025666>