From: Peter Rosin Date: Tue, 8 Dec 2009 06:46:18 +0000 (-0800) Subject: Output %p as unsigned in the bundled snprintf X-Git-Tag: mutt-1-5-21-rel~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f15d195a49da9a36b5b6ae315239a448ff9893d7;p=mutt Output %p as unsigned in the bundled snprintf --- diff --git a/snprintf.c b/snprintf.c index 827b362c..d370939a 100644 --- a/snprintf.c +++ b/snprintf.c @@ -340,6 +340,7 @@ static int dopr (char *buffer, size_t maxlen, const char *format, va_list args) fmtstr (buffer, &currlen, maxlen, strvalue, flags, min, max); break; case 'p': + flags |= DP_F_UNSIGNED; strvalue = va_arg (args, void *); fmtint (buffer, &currlen, maxlen, (long) strvalue, 16, min, max, flags); break;