summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/stdio/printf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/stdio/printf.c b/libc/stdio/printf.c
index 91b03b31b..36c23c2fc 100644
--- a/libc/stdio/printf.c
+++ b/libc/stdio/printf.c
@@ -476,6 +476,7 @@ int vfnprintf(FILE * op, size_t max_size, const char *fmt, va_list ap)
if (*p == 'p') {
lval = (sizeof(char *) == sizeof(long));
upcase = 0;
+ flag[FLAG_HASH] = 1;
}
#if defined(__UCLIBC_HAS_LONG_LONG__) || WANT_LONG_LONG_ERROR
if (lval >= 2) {