1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/print/nenscript/files/patch-main.c
Baptiste Daroussin f0de4761aa Back from the Attic
Point to the new home and master_site

Submitted by:	scf@
2011-08-01 15:25:04 +00:00

12 lines
350 B
C

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