]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
Fix possible security vulnerability and fatal error 181/head
authorAntoine Fontaine <antoine.fontaine@epfl.ch>
Wed, 14 Apr 2021 21:44:28 +0000 (23:44 +0200)
committerAntoine Fontaine <antoine.fontaine@epfl.ch>
Wed, 14 Apr 2021 21:49:27 +0000 (23:49 +0200)
tools/heretic2/common/inout.c
tools/quake2/common/inout.c

index e0c14841163387ad761e1c7c0457f37de4f6a9b4..b6d272ffdf694588b7c572b0f425cae2d5e87890 100644 (file)
@@ -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 ) {
index e0c14841163387ad761e1c7c0457f37de4f6a9b4..b6d272ffdf694588b7c572b0f425cae2d5e87890 100644 (file)
@@ -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 ) {