summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/wireshark/patches/patch-ab20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/wireshark/patches/patch-ab b/net/wireshark/patches/patch-ab
new file mode 100644
index 00000000000..71ccf804a95
--- /dev/null
+++ b/net/wireshark/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.3 2007/07/06 17:59:16 drochner Exp $
+
+--- wiretap/dbs-etherwatch.c.orig 2007-07-06 12:52:45.000000000 +0200
++++ wiretap/dbs-etherwatch.c
+@@ -624,13 +624,13 @@ parse_hex_dump(char* dump, guint8 *buf,
+ if(isdigit((guchar)dump[pos])) {
+ buf[count] = (dump[pos] - '0') << 4;
+ } else {
+- buf[count] = (toupper(dump[pos]) - 'A' + 10) << 4;
++ buf[count] = (toupper((guchar)dump[pos]) - 'A' + 10) << 4;
+ }
+ pos++;
+ if(isdigit((guchar)dump[pos])) {
+ buf[count] += dump[pos] - '0';
+ } else {
+- buf[count] += toupper(dump[pos]) - 'A' + 10;
++ buf[count] += toupper((guchar)dump[pos]) - 'A' + 10;
+ }
+ pos++;
+ count++;