From 1ecf8c4f53fa45b4e29c3db4ed4e5493c88d352f Mon Sep 17 00:00:00 2001 From: schwarze Date: Wed, 6 Mar 2019 12:32:10 +0000 Subject: drop redundant '0' flag from "%02.2X" format string; found by a compiler warning from gcc 4.9.2 on Linux --- usr.bin/mandoc/cgi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/mandoc/cgi.c') 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 * Copyright (c) 2014, 2015, 2016, 2017, 2018 Ingo Schwarze @@ -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); } -- cgit v1.2.3-59-g8ed1b