From: Antoine Fontaine Date: Wed, 14 Apr 2021 21:44:28 +0000 (+0200) Subject: Fix possible security vulnerability and fatal error X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1f172c2a58c26ef8b26a1c2628fe306d9ba891b1;p=xonotic%2Fnetradiant.git Fix possible security vulnerability and fatal error --- diff --git a/tools/heretic2/common/inout.c b/tools/heretic2/common/inout.c index e0c14841..b6d272ff 100644 --- a/tools/heretic2/common/inout.c +++ b/tools/heretic2/common/inout.c @@ -261,7 +261,7 @@ void FPrintf( int flag, char *buf ){ static qboolean bGotXML = false; char level[2]; - printf( buf ); + printf( "%s", buf ); // the following part is XML stuff only.. but maybe we don't want that message to go down the XML pipe? if ( flag == SYS_NOXML ) { diff --git a/tools/quake2/common/inout.c b/tools/quake2/common/inout.c index e0c14841..b6d272ff 100644 --- a/tools/quake2/common/inout.c +++ b/tools/quake2/common/inout.c @@ -261,7 +261,7 @@ void FPrintf( int flag, char *buf ){ static qboolean bGotXML = false; char level[2]; - printf( buf ); + printf( "%s", buf ); // the following part is XML stuff only.. but maybe we don't want that message to go down the XML pipe? if ( flag == SYS_NOXML ) {