Obey signedness flag in %z case.

MFC after:	2 months
This commit is contained in:
Xin LI 2008-11-17 23:57:40 +00:00
parent d0e14c5099
commit e1088cdca3

View File

@ -814,7 +814,7 @@ reswitch: switch (ch = (u_char)*fmt++) {
else if (lflag)
num = va_arg(ap, long);
else if (zflag)
num = va_arg(ap, size_t);
num = va_arg(ap, ssize_t);
else if (hflag)
num = (short)va_arg(ap, int);
else if (cflag)