summaryrefslogtreecommitdiff
path: root/x11-misc/xstroke/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /x11-misc/xstroke/files
reinit the tree, so we can have metadata
Diffstat (limited to 'x11-misc/xstroke/files')
-rw-r--r--x11-misc/xstroke/files/xstroke-0.6-sigsegv_sprintf.patch13
-rw-r--r--x11-misc/xstroke/files/xstroke-0.6-underlinking.patch11
2 files changed, 24 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;
diff --git a/x11-misc/xstroke/files/xstroke-0.6-underlinking.patch b/x11-misc/xstroke/files/xstroke-0.6-underlinking.patch
new file mode 100644
index 000000000000..52b39ddf4512
--- /dev/null
+++ b/x11-misc/xstroke/files/xstroke-0.6-underlinking.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -40,7 +40,7 @@
+ BUILT_SOURCES = rec_parse.h rec_lex.h rec_lex.c
+ AM_YFLAGS = -d
+
+-xstroke_LDADD = @XSTROKE_LIBS@ -lm -lpthread $(X_LIBS) -lXpm -lXtst
++xstroke_LDADD = @XSTROKE_LIBS@ -lm -lpthread $(X_LIBS) -lXpm -lXtst -lX11 -lXrender -lXext -ldl
+ AM_CFLAGS = @XSTROKE_CFLAGS@ -DXSTROKE_CONF_DIR='"$(sysconfdir)/xstroke"' $(X_CFLAGS)
+
+ EXTRA_DIST = xstroke_active.xpm xstroke_inactive.xpm etc/alphabet