(svn r15626) -Fix [FS#2698]: UTF8 string handling could cause buffer overruns.
This commit is contained in:
@@ -97,7 +97,7 @@ void IConsolePrint(ConsoleColour colour_code, const char *string)
|
||||
* characters and (when applicable) assign it to the console buffer */
|
||||
str = strdup(string);
|
||||
str_strip_colours(str);
|
||||
str_validate(str);
|
||||
str_validate(str, str + strlen(str));
|
||||
|
||||
if (_network_dedicated) {
|
||||
fprintf(stdout, "%s\n", str);
|
||||
|
Reference in New Issue
Block a user