summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/cgi.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2019-03-06 12:32:10 +0000
committerschwarze <schwarze@openbsd.org>2019-03-06 12:32:10 +0000
commit1ecf8c4f53fa45b4e29c3db4ed4e5493c88d352f (patch)
tree434a0f0ab2b92000a2d7338530cc39ddfbe73128 /usr.bin/mandoc/cgi.c
parentman.cgi also needs to link arch.o; forgotten in rev. 1.116 (diff)
downloadwireguard-openbsd-1ecf8c4f53fa45b4e29c3db4ed4e5493c88d352f.tar.xz
wireguard-openbsd-1ecf8c4f53fa45b4e29c3db4ed4e5493c88d352f.zip
drop redundant '0' flag from "%02.2X" format string;
found by a compiler warning from gcc 4.9.2 on Linux
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
-rw-r--r--usr.bin/mandoc/cgi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c
index d783e3c1fb5..c0d98a8eeef 100644
--- a/usr.bin/mandoc/cgi.c
+++ b/usr.bin/mandoc/cgi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cgi.c,v 1.103 2019/01/31 23:00:18 schwarze Exp $ */
+/* $OpenBSD: cgi.c,v 1.104 2019/03/06 12:32:10 schwarze Exp $ */
/*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015, 2016, 2017, 2018 Ingo Schwarze <schwarze@usta.de>
@@ -320,7 +320,7 @@ http_encode(const char *p)
for (; *p != '\0'; p++) {
if (isalnum((unsigned char)*p) == 0 &&
strchr("-._~", *p) == NULL)
- printf("%%%02.2X", (unsigned char)*p);
+ printf("%%%2.2X", (unsigned char)*p);
else
putchar(*p);
}