This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
sprintf %hi converion
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: sprintf %hi converion
- From: Matt Wimer <matt at god dot vtic dot net>
- Date: Fri, 29 Jun 2001 14:22:15 -0700
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