Fixes for format strings
Ulrich Drepper
drepper@redhat.com
Sat Dec 9 08:43:00 GMT 2000
Andreas Jaeger <aj@suse.de> writes:
> @@ -1482,7 +1482,7 @@
> struct charseq *seq;
> uint32_t wch;
>
> - sprintf (tmp, (base == 10 ? "%.*s%0*d" : "%.*s%0*X"), cp - last_str,
> + sprintf (tmp, (base == 10 ? "%.*s%0*ld" : "%.*s%0*lX"), cp - last_str,
> last_str, now->val.str.lenmb - (cp - last_str), from);
The is a pointer difference. Therefore use the t modifier (not l).
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list