- (djm) Fix vsprintf("%h") in bsd-snprintf.c, short int va_args are

promoted to type int. Report and fix from Dan Astoorian
   <djast@cs.toronto.edu>
This commit is contained in:
Damien Miller 2000-11-11 09:03:32 +11:00
parent 29abb1b6a9
commit 9f4f7552ee
2 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,9 @@
- (djm) Added /etc/primes for kex DH group neg, fixup Makefile.in and - (djm) Added /etc/primes for kex DH group neg, fixup Makefile.in and
packaging files packaging files
- (djm) Fix new Makefile.in warnings - (djm) Fix new Makefile.in warnings
- (djm) Fix vsprintf("%h") in bsd-snprintf.c, short int va_args are
promoted to type int. Report and fix from Dan Astoorian
<djast@cs.toronto.edu>
20001110 20001110
- (bal) Fixed dropped answer from skey_keyinfo() in auth1.c - (bal) Fixed dropped answer from skey_keyinfo() in auth1.c

View File

@ -260,7 +260,7 @@ static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
case 'd': case 'd':
case 'i': case 'i':
if (cflags == DP_C_SHORT) if (cflags == DP_C_SHORT)
value = va_arg (args, short int); value = va_arg (args, int);
else if (cflags == DP_C_LONG) else if (cflags == DP_C_LONG)
value = va_arg (args, long int); value = va_arg (args, long int);
else if (cflags == DP_C_LONG_LONG) else if (cflags == DP_C_LONG_LONG)
@ -272,7 +272,7 @@ static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
case 'o': case 'o':
flags |= DP_F_UNSIGNED; flags |= DP_F_UNSIGNED;
if (cflags == DP_C_SHORT) if (cflags == DP_C_SHORT)
value = va_arg (args, unsigned short int); value = va_arg (args, unsigned int);
else if (cflags == DP_C_LONG) else if (cflags == DP_C_LONG)
value = va_arg (args, unsigned long int); value = va_arg (args, unsigned long int);
else if (cflags == DP_C_LONG_LONG) else if (cflags == DP_C_LONG_LONG)
@ -284,7 +284,7 @@ static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
case 'u': case 'u':
flags |= DP_F_UNSIGNED; flags |= DP_F_UNSIGNED;
if (cflags == DP_C_SHORT) if (cflags == DP_C_SHORT)
value = va_arg (args, unsigned short int); value = va_arg (args, unsigned int);
else if (cflags == DP_C_LONG) else if (cflags == DP_C_LONG)
value = va_arg (args, unsigned long int); value = va_arg (args, unsigned long int);
else if (cflags == DP_C_LONG_LONG) else if (cflags == DP_C_LONG_LONG)
@ -298,7 +298,7 @@ static void dopr (char *buffer, size_t maxlen, const char *format, va_list args)
case 'x': case 'x':
flags |= DP_F_UNSIGNED; flags |= DP_F_UNSIGNED;
if (cflags == DP_C_SHORT) if (cflags == DP_C_SHORT)
value = va_arg (args, unsigned short int); value = va_arg (args, unsigned int);
else if (cflags == DP_C_LONG) else if (cflags == DP_C_LONG)
value = va_arg (args, unsigned long int); value = va_arg (args, unsigned long int);
else if (cflags == DP_C_LONG_LONG) else if (cflags == DP_C_LONG_LONG)