From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]) by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 104f6423 for ; Wed, 6 Mar 2019 07:33:11 -0500 (EST) Date: Wed, 6 Mar 2019 07:33:11 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: drop redundant '0' flag from "%02.2X" format string; found by a X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: Log Message: ----------- drop redundant '0' flag from "%02.2X" format string; found by a compiler warning from gcc 4.9.2 on Linux Modified Files: -------------- mandoc: cgi.c Revision Data ------------- Index: cgi.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/cgi.c,v retrieving revision 1.165 retrieving revision 1.166 diff -Lcgi.c -Lcgi.c -u -p -r1.165 -r1.166 --- cgi.c +++ cgi.c @@ -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); } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv