summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authortron <tron>1998-07-05 21:59:42 +0000
committertron <tron>1998-07-05 21:59:42 +0000
commit0abe3bc34409c2f51cbbed331d8f6fe12a870649 (patch)
treeee5a7cab3287d5d4ae91c09e195ec27e93d59211 /graphics
parent139f2b93975398bd50611cd87134ad932c83d99f (diff)
downloadpkgsrc-0abe3bc34409c2f51cbbed331d8f6fe12a870649.tar.gz
Add patch for "kghostscript" to stop it segment faulting on startup.
Fixes PR pkg/5707 by Nick Hudson.
Diffstat (limited to 'graphics')
-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;