1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Format %p as unsigned.

This commit is contained in:
Peter Rosin 2010-01-09 18:18:21 -08:00
parent 8e39fcf97b
commit 8798e25533
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-12-03 Peter Rosin <peda@lysator.liu.se>
* snprintf.c (dopr): Output %p as unsigned.
2010-01-09 Jeremy Olexa <darkside@gentoo.org> (tiny change) 2010-01-09 Jeremy Olexa <darkside@gentoo.org> (tiny change)
* init.c: Deal with systems which provide PATH_MAX in * init.c: Deal with systems which provide PATH_MAX in

View File

@ -403,6 +403,7 @@ static int dopr (char *buffer, size_t maxlen, const char *format, va_list args)
total += fmtstr (buffer, &currlen, maxlen, strvalue, flags, min, max); total += fmtstr (buffer, &currlen, maxlen, strvalue, flags, min, max);
break; break;
case 'p': case 'p':
flags |= DP_F_UNSIGNED;
strvalue = va_arg (args, void *); strvalue = va_arg (args, void *);
total += fmtint (buffer, &currlen, maxlen, (long) strvalue, 16, min, total += fmtint (buffer, &currlen, maxlen, (long) strvalue, 16, min,
max, flags); max, flags);