]> granicus.if.org Git - php/commitdiff
sapi/litespeed/lsapi_main.c: Fix bug #63228
authorGeorge Wang <gwang@php.net>
Fri, 12 Oct 2012 17:04:22 +0000 (13:04 -0400)
committerAdam Harvey <aharvey@php.net>
Tue, 8 Jan 2013 03:40:13 +0000 (11:40 +0800)
Fix compiling error at line 606 (error: format not a string
literal and no format arguments [-Werror=format-security]

sapi/litespeed/lsapi_main.c

index 3e04df95ba8130a41c3ae85a8a1b0e9a633aa7b1..f33b049780e1d28e9da95b6c7f60cd3d8cbbea0e 100644 (file)
@@ -603,7 +603,7 @@ static void cli_usage( TSRMLS_D )
         "  args...    Arguments passed to script.\n";
     php_output_startup();
     php_output_activate(TSRMLS_C);
-    php_printf( usage );
+    php_printf( "%s", usage );
 #ifdef PHP_OUTPUT_NEWAPI
     php_output_end_all(TSRMLS_C);
 #else