summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/xstroke/files/xstroke-0.6-sigsegv_sprintf.patch')
-rw-r--r--x11-misc/xstroke/files/xstroke-0.6-sigsegv_sprintf.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/x11-misc/xstroke/files/xstroke-0.6-sigsegv_sprintf.patch b/x11-misc/xstroke/files/xstroke-0.6-sigsegv_sprintf.patch
new file mode 100644
index 000000000000..b36958849f53
--- /dev/null
+++ b/x11-misc/xstroke/files/xstroke-0.6-sigsegv_sprintf.patch
@@ -0,0 +1,13 @@
+diff -Nru xstroke-0.6.vanilla/sprintf_alloc.c xstroke-0.6/sprintf_alloc.c
+--- xstroke-0.6.vanilla/sprintf_alloc.c 2005-11-26 01:55:32.000000000 +0100
++++ xstroke-0.6/sprintf_alloc.c 2005-11-26 01:55:55.000000000 +0100
+@@ -74,7 +74,8 @@
+ {
+ char *new_str;
+ /* Guess we need no more than 100 bytes. */
+- int n, size = 100;
++ /* yeah... right... */
++ int n, size = 512;
+
+ if ((*str = malloc (size)) == NULL)
+ return -1;