Package: lprng / 3.8.B-2

string_literals Patch series | download
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
--- a/src/common/sendjob.c
+++ b/src/common/sendjob.c
@@ -172,7 +172,7 @@
 			}
 			goto retry_connect;
 		}
-		setstatus(logjob, error );
+		setstatus(logjob, "%s", error );
 		goto error;
 	}
 	save_host = safestrdup(RemoteHost_DYN,__FILE__,__LINE__);
--- a/src/common/checkpc.c
+++ b/src/common/checkpc.c
@@ -114,7 +114,7 @@
 	}
 
 	if( Verbose ){
-		if(Verbose)MESSAGE( Version );
+		MESSAGE("%s", Version );
 	}
 
 	Initialize(argc, argv, envp, 'D' );
@@ -1436,7 +1436,7 @@
 	if( (tf = popen( "ps | grep XXYYZZ | grep -v grep", "r" )) ){
 		Max_open( fileno(tf) );
 		while( fgets( line, sizeof(line), tf ) ){
-			FPRINTF( STDOUT, line );
+			FPRINTF( STDOUT, "%s", line );
 			++i;
 		}
 		fclose(tf);
@@ -1445,7 +1445,7 @@
 	if( i == 0 && (tf = popen( "ps | grep XXYYZZ | grep -v grep", "r" )) ){
 		Max_open( fileno(tf) );
 		while( fgets( line, sizeof(line), tf ) ){
-			FPRINTF( STDOUT, line );
+			FPRINTF( STDOUT, "%s", line );
 			++i;
 		}
 		fclose(tf);