diff options
author | naddy <naddy@FreeBSD.org> | 2002-08-02 19:25:11 +0800 |
---|---|---|
committer | naddy <naddy@FreeBSD.org> | 2002-08-02 19:25:11 +0800 |
commit | e71cf06ca1ecc34772735f8336ddc14d00b2e8de (patch) | |
tree | ab10c97bde8bf73c6c3fca28ba1e6d0d8426ae8e /print | |
parent | b612c6e4e1a82307f36de0bac0c111fbc446370e (diff) | |
download | freebsd-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')
-rw-r--r-- | print/mpage/Makefile | 1 | ||||
-rw-r--r-- | print/mpage/files/patch-args.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/print/mpage/Makefile b/print/mpage/Makefile index 015d7e824cc2..b2712d9ae48e 100644 --- a/print/mpage/Makefile +++ b/print/mpage/Makefile @@ -7,6 +7,7 @@ PORTNAME= mpage PORTVERSION= 2.5.2 +PORTREVISION= 1 CATEGORIES= print MASTER_SITES= ftp://ftp.mesa.nl/pub/mpage/ EXTRACT_SUFX= .tgz 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); |