This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

sprintf %hi converion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]