summaryrefslogtreecommitdiff
path: root/ham/dpbox/patches/patch-ax
diff options
context:
space:
mode:
Diffstat (limited to 'ham/dpbox/patches/patch-ax')
-rw-r--r--ham/dpbox/patches/patch-ax24
1 files changed, 24 insertions, 0 deletions
diff --git a/ham/dpbox/patches/patch-ax b/ham/dpbox/patches/patch-ax
new file mode 100644
index 00000000000..e25a74e30f9
--- /dev/null
+++ b/ham/dpbox/patches/patch-ax
@@ -0,0 +1,24 @@
+$NetBSD: patch-ax,v 1.1 2006/04/21 02:07:54 wulf Exp $
+
+--- dpgate.c.orig 2006-04-14 12:12:16.000000000 +0930
++++ dpgate.c 2006-04-14 12:12:45.000000000 +0930
+@@ -155,7 +155,7 @@
+ if (buf[i] == '\r') {
+ putchar('\n');
+ }
+- else if (isprint(buf[i]))
++ else if (isprint((u_char) buf[i]))
+ putchar(buf[i]);
+ else
+ putchar('.');
+@@ -696,8 +696,8 @@
+ while (*i) {
+ if (*i == '%' && strlen(i) > 2 && i[1] != '%') {
+ i++;
+- h[0] = toupper(*i++);
+- h[1] = toupper(*i++);
++ h[0] = toupper((u_char) *i++);
++ h[1] = toupper((u_char) *i++);
+ h[2] = '\0';
+ r = 32;
+ sscanf(h, "%X", &r);