summaryrefslogtreecommitdiff
path: root/lib/replace/snprintf.c
diff options
context:
space:
mode:
authorPeter Rosin <peda@lysator.liu.se>2009-12-19 19:43:52 +0100
committerVolker Lendecke <vl@samba.org>2009-12-19 19:43:52 +0100
commit590f7c262df9517f64c6faf35e6b7ed7664a0002 (patch)
tree932ed4fd7cec429e1bf05922138ee790497da3a8 /lib/replace/snprintf.c
parentfcbe8f0c80e3848e87d37476a46c7eb553d592c1 (diff)
downloadsamba-590f7c262df9517f64c6faf35e6b7ed7664a0002.tar.gz
samba-590f7c262df9517f64c6faf35e6b7ed7664a0002.tar.bz2
samba-590f7c262df9517f64c6faf35e6b7ed7664a0002.zip
Output %p as unsigned in snprintf replacement.
Diffstat (limited to 'lib/replace/snprintf.c')
-rw-r--r--lib/replace/snprintf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/replace/snprintf.c b/lib/replace/snprintf.c
index c54d721ce5..bca774263e 100644
--- a/lib/replace/snprintf.c
+++ b/lib/replace/snprintf.c
@@ -504,6 +504,7 @@ static int dopr(char *buffer, size_t maxlen, const char *format, va_list args_in
break;
case 'p':
cnk->type = CNK_PTR;
+ cnk->flags |= DP_F_UNSIGNED;
break;
case 'n':
cnk->type = CNK_NUM;