diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-03-06 12:32:41 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-03-06 12:32:41 +0000 |
commit | c83c21a92cc24c2fa1208ec948dcc22fcc247cc5 (patch) | |
tree | d843bab30307514bad086d844182546b7dfb3d0e | |
parent | ae3ea99fc0b9d129c98a5d84c6c8d98b3475de27 (diff) | |
download | mandoc-c83c21a92cc24c2fa1208ec948dcc22fcc247cc5.tar.gz |
drop redundant '0' flag from "%02.2X" format string;
found by a compiler warning from gcc 4.9.2 on Linux
-rw-r--r-- | cgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -324,7 +324,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); } |