Output %p as unsigned in snprintf replacement.
authorPeter Rosin <peda@lysator.liu.se>
Sat, 19 Dec 2009 18:43:52 +0000 (19:43 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 19 Dec 2009 18:43:52 +0000 (19:43 +0100)
lib/replace/snprintf.c

index c54d721..bca7742 100644 (file)
@@ -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;