diff options
author | Craig Small <csmall@debian.org> | 2017-02-08 15:20:30 -0500 |
---|---|---|
committer | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | 2017-02-08 15:20:30 -0500 |
commit | 63d1f3c6e0d1a68569f1372123fd64e9be81672d (patch) | |
tree | c0280917db98f482e438ad235eb3cecb5a7c2fe2 | |
parent | fbf6c79ba0dc4f220f41f0add23cc4951e782491 (diff) |
string_literals
Gbp-Pq: Name string_literals
-rw-r--r-- | src/common/checkpc.c | 6 | ||||
-rw-r--r-- | src/common/sendjob.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/common/checkpc.c b/src/common/checkpc.c index 8b0b2ad..f4cfdd0 100644 --- a/src/common/checkpc.c +++ b/src/common/checkpc.c @@ -114,7 +114,7 @@ int main( int argc, char *argv[], char *envp[] ) } if( Verbose ){ - if(Verbose)MESSAGE( Version ); + MESSAGE("%s", Version ); } Initialize(argc, argv, envp, 'D' ); @@ -1436,7 +1436,7 @@ void Test_port(int ruid, int euid, char *serial_line ) 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 @@ void Test_port(int ruid, int euid, char *serial_line ) 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); diff --git a/src/common/sendjob.c b/src/common/sendjob.c index f890ad7..4bde3a3 100644 --- a/src/common/sendjob.c +++ b/src/common/sendjob.c @@ -172,7 +172,7 @@ int Send_job( struct job *job, struct job *logjob, } goto retry_connect; } - setstatus(logjob, error ); + setstatus(logjob, "%s", error ); goto error; } save_host = safestrdup(RemoteHost_DYN,__FILE__,__LINE__); |