Fixes for format strings

Ulrich Drepper drepper@redhat.com
Sat Dec 9 12:22:00 GMT 2000


Andreas Jaeger <aj@suse.de> writes:

> It should be:
> 	  sprintf (tmp, (base == 10 ? "%.*s%0*ld" : "%.*s%0*lX"), cp - last_str,
> 		   last_str, (int) (now->val.str.lenmb - (cp - last_str)), from);

Not quite.  You also have to change

  cp - last_str

to
  (int) (cp - last_str)

as Jakub said.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------


More information about the Libc-hacker mailing list