diff options
author | das <das@FreeBSD.org> | 2009-02-28 04:58:18 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2009-02-28 04:58:18 +0000 |
commit | 8f720cc6670287f3dc8e001fd7373042cb85e875 (patch) | |
tree | c6a4ad3e40ffcac2f78ac97d44380a78e031021d /lib/libc/stdio/vfprintf.c | |
parent | ddd5c68e843d2a001ea8e2dea8a1df60e8b9c96f (diff) | |
download | FreeBSD-src-8f720cc6670287f3dc8e001fd7373042cb85e875.zip FreeBSD-src-8f720cc6670287f3dc8e001fd7373042cb85e875.tar.gz |
Make sure %zd treats negative arguments properly on 32-bit platforms.
Fix harmless but related bugs in %_$zd and %_$tu.
PR: 131880
MFC after: 1 week
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index e3f95eb..21e8f82 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -399,7 +399,7 @@ __vfprintf(FILE *fp, const char *fmt0, va_list ap) #define INTMAX_SIZE (INTMAXT|SIZET|PTRDIFFT|LLONGINT) #define SJARG() \ (flags&INTMAXT ? GETARG(intmax_t) : \ - flags&SIZET ? (intmax_t)GETARG(size_t) : \ + flags&SIZET ? (intmax_t)GETARG(ssize_t) : \ flags&PTRDIFFT ? (intmax_t)GETARG(ptrdiff_t) : \ (intmax_t)GETARG(long long)) #define UJARG() \ |