Files
ports/print/mpage/files/patch-args.c
T
Christian Weisgerber a0caaced6f Remove spurious strcpy() that clobbers the stack.
Submitted by:	Guy Middleton <guy@crtsol.com>
2002-08-02 11:25:11 +00:00

14 lines
362 B
C

$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);