File: z11-format-string

package info (click to toggle)
glide 2002.04.10ds1-15
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 59,556 kB
  • sloc: ansic: 290,125; asm: 23,305; sh: 8,089; pascal: 3,854; makefile: 1,276; perl: 73
file content (63 lines) | stat: -rw-r--r-- 1,694 bytes parent folder | download | duplicates (4)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
 glide2x/cvg/glide/tests/tlib.c |    2 +-
 glide2x/h3/glide/tests/tlib.c  |    2 +-
 swlibs/fxmisc/fximg.c          |    2 +-
 swlibs/newpci/pcilib/fxlinux.c |    2 +-
 swlibs/texus2/lib/eigen.c      |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

--- a/swlibs/fxmisc/fximg.c
+++ b/swlibs/fxmisc/fximg.c
@@ -1949,7 +1949,7 @@ FxBool imgReadFile(const char *filename,
 	    char buf[1024], *p;
 	    strcpy(buf,prefix);			// copy and replace semicolon
 	    if ((p = strchr(buf,';')) != NULL) *p = '\0';
-	    fprintf(stderr,buf);
+	    fprintf(stderr, "%s", buf);
 	    fprintf(stderr,"/");
 	}
 	fprintf (stderr,"%s (%ldx%ld) ...", filename, info->any.width,info->any.height);
--- a/swlibs/newpci/pcilib/fxlinux.c
+++ b/swlibs/newpci/pcilib/fxlinux.c
@@ -174,7 +174,7 @@ pciIdentifyLinux(void)
 static FxBool 
 pciOutputStringLinux(const char *msg) 
 {
-  printf(msg);
+  printf("%s", msg);
   return FXTRUE;
 }
 
--- a/glide2x/cvg/glide/tests/tlib.c
+++ b/glide2x/cvg/glide/tests/tlib.c
@@ -1360,7 +1360,7 @@ char tlGetCH( void ) {
 
 FxBool
 tlErrorMessage( char *err) {
-  return !!fprintf(stderr, err);
+  return !!fprintf(stderr, "%s", err);
 } /* tlErrorMessage */
 
 #else
--- a/glide2x/h3/glide/tests/tlib.c
+++ b/glide2x/h3/glide/tests/tlib.c
@@ -1360,7 +1360,7 @@ char tlGetCH( void ) {
 
 FxBool
 tlErrorMessage( char *err) {
-  return !!fprintf(stderr, err);
+  return !!fprintf(stderr, "%s", err);
 } /* tlErrorMessage */
 
 #else
--- a/swlibs/texus2/lib/eigen.c
+++ b/swlibs/texus2/lib/eigen.c
@@ -409,7 +409,7 @@ printStatistics(
     int i;
 
     if (title) {
-        fprintf(stdout, title);
+        fprintf(stdout, "%s", title);
     }
 
     if (input) {