You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/xstroke/files/xstroke-0.6-sigsegv_sprintf...

14 lines
438 B

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;