aboutsummaryrefslogtreecommitdiffstats
path: root/main/a2ps/a2ps-4.14-fix-stpcpy-proto.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-11-13 13:54:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-11-13 13:54:21 +0000
commit7705d03c2dca95282aed1cc3ad72bbffedd32ad3 (patch)
tree19200589034e32c1122d3272e5aa73abb84a0055 /main/a2ps/a2ps-4.14-fix-stpcpy-proto.patch
parentfc628669e5452318f3ea52885d31b03173fa79a5 (diff)
downloadaports-7705d03c2dca95282aed1cc3ad72bbffedd32ad3.tar.bz2
aports-7705d03c2dca95282aed1cc3ad72bbffedd32ad3.tar.xz
main/a2ps: new aport
a2ps is an Any to PostScript filter http://www.gnu.org/software/a2ps/
Diffstat (limited to 'main/a2ps/a2ps-4.14-fix-stpcpy-proto.patch')
-rw-r--r--main/a2ps/a2ps-4.14-fix-stpcpy-proto.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/a2ps/a2ps-4.14-fix-stpcpy-proto.patch b/main/a2ps/a2ps-4.14-fix-stpcpy-proto.patch
new file mode 100644
index 0000000000..c5bdfc57cd
--- /dev/null
+++ b/main/a2ps/a2ps-4.14-fix-stpcpy-proto.patch
@@ -0,0 +1,17 @@
+=== modified file 'lib/xstrrpl.c'
+--- a/lib/xstrrpl.c 2008-04-14 18:04:50 +0000
++++ b/lib/xstrrpl.c 2008-04-14 18:20:20 +0000
+@@ -20,12 +20,10 @@
+
+ #include "system.h"
+ #include <assert.h>
+ #include "xstrrpl.h"
+
+-extern char * stpcpy();
+-
+ /* Perform subsitutions in string. Result is malloc'd
+ E.g., result = xstrrrpl ("1234", subst) gives result = "112333"
+ where subst = { {"1", "11"}, {"3", "333"}, { "4", ""}}
+ */
+ char *
+