unixodbc (2.2.14p2-5) exe/iusql.c

Summary

 exe/iusql.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

    
download this patch

Patch contents

--- unixodbc-2.2.14p2.orig/exe/iusql.c
+++ unixodbc-2.2.14p2/exe/iusql.c
@@ -78,7 +78,7 @@
 
     if ( argc < 2 )
     {
-        fprintf( stderr, szSyntax );
+        fprintf( stderr, "%s", szSyntax );
         exit( 1 );
     }
 
@@ -135,7 +135,7 @@
                     break;
 #endif
                 default:
-                    fprintf( stderr, szSyntax );
+                    fprintf( stderr, "%s", szSyntax );
                     exit( 1 );
             }
             continue;
@@ -748,9 +748,9 @@
     strcat((char*) szSepLine, "+\n" );
     strcat((char*) szHdrLine, "|\n" );
 
-    printf((char*) szSepLine );
-    printf((char*) szHdrLine );
-    printf((char*) szSepLine );
+    printf("%s", (char*) szSepLine );
+    printf("%s", (char*) szHdrLine );
+    printf("%s", (char*) szSepLine );
 
 }
 
@@ -838,7 +838,7 @@
 {
     SQLLEN  nRowsAffected   = -1;
 
-    printf( (char*)szSepLine );
+    printf( "%s", (char*)szSepLine );
 
     SQLRowCount( hStmt, &nRowsAffected );
     printf( "SQLRowCount returns %d\n", nRowsAffected );