* (bug 3412) %s expansion security patch (DevHC)
This commit is contained in:
@@ -62,7 +62,7 @@ void QDECL AAS_Error(char *fmt, ...)
|
||||
va_start(arglist, fmt);
|
||||
vsprintf(str, fmt, arglist);
|
||||
va_end(arglist);
|
||||
botimport.Print(PRT_FATAL, str);
|
||||
botimport.Print(PRT_FATAL, "%s", str);
|
||||
} //end of the function AAS_Error
|
||||
//===========================================================================
|
||||
//
|
||||
|
@@ -1428,6 +1428,6 @@ void PS_SetBaseFolder(char *path)
|
||||
#ifdef BSPC
|
||||
sprintf(basefolder, path);
|
||||
#else
|
||||
Com_sprintf(basefolder, sizeof(basefolder), path);
|
||||
Com_sprintf(basefolder, sizeof(basefolder), "%s", path);
|
||||
#endif
|
||||
} //end of the function PS_SetBaseFolder
|
||||
|
Reference in New Issue
Block a user