File: fix_format_err

package info (click to toggle)
ifmail 2.14tx8.10-26
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 3,908 kB
  • sloc: ansic: 30,320; perl: 4,955; yacc: 838; makefile: 717; sh: 424; cpp: 235; lex: 206; awk: 24
file content (49 lines) | stat: -rw-r--r-- 1,152 bytes parent folder | download | duplicates (7)
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
--- a/ifcico/zmsend.c
+++ b/ifcico/zmsend.c
@@ -470,7 +470,7 @@ to:
 	if (Test) {
 		if ( --tleft)
 			while (tcount < 20000) {
-			    printf(qbf); fflush(stdout);
+			    printf("%s", qbf); fflush(stdout);
 			    tcount += strlen(qbf);
 			    if (CHECK()) 
 			    {
--- a/ifcico/nlookup.c
+++ b/ifcico/nlookup.c
@@ -75,7 +75,7 @@ void Lookup( char *Address )
 			addr.net = strtol( p, &p, 10 );
 			if ( *p++ != '/' ) {
 			  Syntax:
-				printf( Address );
+				printf( "%s", Address );
 				return;
 			}
 		  ParseNodeAndPoint:
@@ -223,7 +223,7 @@ void Lookup( char *Address )
 						firstFlag = 0;
 					else
 						printf( ", " );
-					printf( p );
+					printf( "%s", p );
 				}
 			if ( nlent->flags & RQMODE ) {
 				switch ( nlent->flags & RQMODE ) {
@@ -251,7 +251,7 @@ void Lookup( char *Address )
 					firstFlag = 0;
 				else
 					printf( ", " );
-				printf( p );
+				printf( "%s", p );
 			}
 			{
 				int i;
@@ -260,7 +260,7 @@ void Lookup( char *Address )
 						firstFlag = 0;
 					else
 						printf( ", " );
-					printf( nlent->uflags[ i ] );
+					printf( "%s", nlent->uflags[ i ] );
 				}
 			}
 			putchar( '\n' );