summaryrefslogtreecommitdiff
path: root/graphics/kdegraphics/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/kdegraphics/patches/patch-aa')
-rw-r--r--graphics/kdegraphics/patches/patch-aa13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/kdegraphics/patches/patch-aa b/graphics/kdegraphics/patches/patch-aa
new file mode 100644
index 00000000000..600a63d183c
--- /dev/null
+++ b/graphics/kdegraphics/patches/patch-aa
@@ -0,0 +1,13 @@
+--- kghostview/kaccel.cpp.orig Wed Apr 8 01:38:58 1998
++++ kghostview/kaccel.cpp Sun Jul 5 23:42:12 1998
+@@ -497,7 +497,9 @@
+ uint keyCode = 0;
+ int j, nb_toks = 0;
+ char sKey[200];
+-
++
++ if ( key == NULL ) return keyCode;
++
+ strncpy(sKey, (const char *)key, 200);
+
+ if ( strcmp( sKey, "" ) == -1 ) return keyCode;