aboutsummaryrefslogtreecommitdiffstats
path: root/print/mpage/files
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-08-02 19:25:11 +0800
committernaddy <naddy@FreeBSD.org>2002-08-02 19:25:11 +0800
commite71cf06ca1ecc34772735f8336ddc14d00b2e8de (patch)
treeab10c97bde8bf73c6c3fca28ba1e6d0d8426ae8e /print/mpage/files
parentb612c6e4e1a82307f36de0bac0c111fbc446370e (diff)
downloadfreebsd-ports-gnome-e71cf06ca1ecc34772735f8336ddc14d00b2e8de.tar.gz
freebsd-ports-gnome-e71cf06ca1ecc34772735f8336ddc14d00b2e8de.tar.zst
freebsd-ports-gnome-e71cf06ca1ecc34772735f8336ddc14d00b2e8de.zip
Remove spurious strcpy() that clobbers the stack.
Submitted by: Guy Middleton <guy@crtsol.com>
Diffstat (limited to 'print/mpage/files')
-rw-r--r--print/mpage/files/patch-args.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/print/mpage/files/patch-args.c b/print/mpage/files/patch-args.c
new file mode 100644
index 000000000000..32b1df52ecba
--- /dev/null
+++ b/print/mpage/files/patch-args.c
@@ -0,0 +1,13 @@
+
+$FreeBSD$
+
+--- args.c.orig Fri Aug 2 13:16:25 2002
++++ args.c Fri Aug 2 13:17:06 2002
+@@ -442,7 +442,6 @@
+ libdir = env;
+
+ if ((env = getenv("MPAGE")) != NULL) {
+- strcpy(copy, env);
+ if ((copy = strdup(env)) == NULL) {
+ fprintf(stderr, "%s: Unable to alloc memory for environment args\n",
+ MPAGE);