]> git.sesse.net Git - vlc/commitdiff
Fix format string would-be vulnerability (the macro is never actually used)
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 28 Nov 2005 09:25:33 +0000 (09:25 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 28 Nov 2005 09:25:33 +0000 (09:25 +0000)
reported by Diego 'Flameeyes' Pettenò (gentoo.org)

modules/control/http/macro.c

index c515ea764d4944ca6e406f53d5b1042e195de638..a901be0b7e0c3c5756b7916ddb2a283708e940ed 100644 (file)
@@ -150,7 +150,7 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
     }
 #define PRINT( str ) \
     ALLOC( strlen( str ) + 1 ); \
-    *pp_dst += sprintf( *pp_dst, str );
+    *pp_dst += sprintf( *pp_dst, "%s", str );
 
 #define PRINTS( str, s ) \
     ALLOC( strlen( str ) + strlen( s ) + 1 ); \