source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: drop redundant '0' flag from "%02.2X" format string; found by a
@ 2019-03-06 12:33 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-03-06 12:33 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-03-06 12:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-06 12:33 mandoc: drop redundant '0' flag from "%02.2X" format string; found by a schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).