File: fix-printf.patch

package info (click to toggle)
libuemf 0.2.8%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,888 kB
  • sloc: ansic: 34,992; sh: 64; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Description: Fix printf() calls.
Author: Andrius Merkys <merkys@debian.org>
--- a/testbed_emf.c
+++ b/testbed_emf.c
@@ -46,7 +46,7 @@
 
 
 void printf_and_flush(const char *string){
-   printf(string);
+   printf("%s",string);
    fflush(stdout);
 }
 
--- a/testbed_pmf.c
+++ b/testbed_pmf.c
@@ -68,7 +68,7 @@
 #define STRALLOC        64
 
 void printf_and_flush(const char *string){
-   printf(string);
+   printf("%s",string);
    fflush(stdout);
 }
 
--- a/testbed_wmf.c
+++ b/testbed_wmf.c
@@ -46,7 +46,7 @@
 #define STRALLOC        64
 
 void printf_and_flush(const char *string){
-   printf(string);
+   printf("%s",string);
    fflush(stdout);
 }