Commit ed7d4688 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix format string would-be vulnerability (the macro is never actually used)

reported by Diego 'Flameeyes' Pettenò (gentoo.org)
parent bc3de761
...@@ -150,7 +150,7 @@ void E_(MacroDo)( httpd_file_sys_t *p_args, ...@@ -150,7 +150,7 @@ void E_(MacroDo)( httpd_file_sys_t *p_args,
} }
#define PRINT( str ) \ #define PRINT( str ) \
ALLOC( strlen( str ) + 1 ); \ ALLOC( strlen( str ) + 1 ); \
*pp_dst += sprintf( *pp_dst, str ); *pp_dst += sprintf( *pp_dst, "%s", str );
#define PRINTS( str, s ) \ #define PRINTS( str, s ) \
ALLOC( strlen( str ) + strlen( s ) + 1 ); \ ALLOC( strlen( str ) + strlen( s ) + 1 ); \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment