From ed7d46886576b5e1419b3222433f12bcf1fe702d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 28 Nov 2005 09:25:33 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20format=20string=20would-be=20vulnerabilit?= =?UTF-8?q?y=20(the=20macro=20is=20never=20actually=20used)=20reported=20b?= =?UTF-8?q?y=20Diego=20'Flameeyes'=20Petten=C3=B2=20(gentoo.org)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/control/http/macro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/control/http/macro.c b/modules/control/http/macro.c index c515ea764d..a901be0b7e 100644 --- a/modules/control/http/macro.c +++ b/modules/control/http/macro.c @@ -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 ); \ -- GitLab