sprintf %hi converion

Matt Wimer matt@god.vtic.net
Fri Jun 29 14:22:00 GMT 2001


Minor bug in sprintf:

Conversion of an int using %hi doesn't cast the va_arg (ap, int) to
'short int' like freebsd, solaris, and netbsd.  I'm guessing
that this is a bug because it doesn't conform to the man pages
which seem to be pretty definative.  This may not be in the
posix spec but it seems everyone else deals with this bad input
the same way.

--matt wimer



More information about the Libc-alpha mailing list