diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2008-07-22 04:13:02 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2008-07-22 04:13:02 +0000 |
commit | 8bbebbeb2b1558a047cab867d29fa1bb494ddaf9 (patch) | |
tree | 3c5a4077cd7e54930de59f1193ad698aa5199211 /print/nenscript/files | |
parent | - Update to 1.4.4 (diff) |
- Minimal patch to prevent a buffer overflow.
PR: ports/125787
Submitted by: Pedro F. Giffuni <pfgshield-freebsd@yahoo.com>
Diffstat (limited to 'print/nenscript/files')
-rw-r--r-- | print/nenscript/files/patch-main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/print/nenscript/files/patch-main.c b/print/nenscript/files/patch-main.c new file mode 100644 index 000000000000..95f17f994811 --- /dev/null +++ b/print/nenscript/files/patch-main.c @@ -0,0 +1,11 @@ +--- main.c.orig 2008-07-19 14:32:26.000000000 -0500 ++++ main.c 2008-07-19 14:34:12.000000000 -0500 +@@ -601,7 +601,7 @@ + exit (1); + } + #else +- sprintf (cmd, "%s %s", LPR, printername); ++ snprintf (cmd, sizeof(cmd), "%s %s", LPR, printername); + if ((outputstream = popen (cmd, "w")) == NULL) { + perror (LPR); + exit (1); |