aboutsummaryrefslogtreecommitdiff
path: root/print/nenscript/files/patch-main.c
blob: 95f17f994811d0a07fbaccfdcf91e09a97ecdfb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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);