aboutsummaryrefslogtreecommitdiff
path: root/www/webalizer/files/patch-unescape
diff options
context:
space:
mode:
Diffstat (limited to 'www/webalizer/files/patch-unescape')
-rw-r--r--www/webalizer/files/patch-unescape11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/webalizer/files/patch-unescape b/www/webalizer/files/patch-unescape
new file mode 100644
index 000000000000..f14c9b37871f
--- /dev/null
+++ b/www/webalizer/files/patch-unescape
@@ -0,0 +1,11 @@
+--- webalizer.c.a-urasim Wed Apr 17 07:11:31 2002
++++ webalizer.c Tue Dec 23 23:26:23 2003
+@@ -1783,7 +1809,7 @@
+ if (*cp1) *cp2=from_hex(*cp1++)*16; /* convert hex to an ascii */
+ if (*cp1) *cp2+=from_hex(*cp1); /* (hopefully) character */
+ if ((*cp2<32)||(*cp2==127)) *cp2='_'; /* make '_' if its bad */
+- if (*cp1) cp2++; cp1++;
++ if (*cp1){ cp2++; cp1++;} /* bug? */
+ }
+ else *cp2++='%';
+ }