From ffae50f019f47483c39e4c40b0dddaf92b60e123 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sun, 13 Mar 2011 17:35:42 +0100 Subject: Use format string on printf() --- crashrep/source/unx/main.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crashrep') diff --git a/crashrep/source/unx/main.cxx b/crashrep/source/unx/main.cxx index 7c7df75ec53e..f0e6630658c5 100644 --- a/crashrep/source/unx/main.cxx +++ b/crashrep/source/unx/main.cxx @@ -368,7 +368,7 @@ bool SendHTTPRequest( if ( g_bDebugMode ) { printf( "*** Sending HTTP request ***\n\n" ); - printf( buffer ); + printf( "%s", buffer ); } if ( SOCKET_ERROR != send( s, buffer, strlen(buffer), 0 ) ) @@ -405,7 +405,7 @@ bool SendHTTPRequest( if ( g_bDebugMode ) do { - printf( buffer ); + printf( "%s", buffer ); memset( buffer, 0, sizeof(buffer) ); } while ( 0 < recv( s, buffer, sizeof(buffer), 0 ) ); } -- cgit