File: unsafe-format

package info (click to toggle)
bogl 0.1.18-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,720 kB
  • sloc: ansic: 7,872; makefile: 219; perl: 26; sh: 10
file content (22 lines) | stat: -rw-r--r-- 707 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/reduce-font.c b/reduce-font.c
index aa0b744..2f4d613 100644
--- a/reduce-font.c
+++ b/reduce-font.c
@@ -142,7 +142,7 @@ main (int argc, char **argv)
                     else if (strncmp (buf, "STARTCHAR ", 10) == 0)
                         header = 0;
                     else
-                        fprintf (stdout, buf);
+                        fprintf (stdout, "%s", buf);
                 }
                 
                 if (!header)
@@ -159,7 +159,7 @@ main (int argc, char **argv)
                     }
 
                     if (docopy)
-                        fprintf (stdout, buf);
+                        fprintf (stdout, "%s", buf);
                 }
             }