(svn r26543) [1.4] -Backport from trunk:

- Fix: Buffer overruns in handling of symbolic links inside tars (r26514)
- Fix: Incorrect usage of strecpy (r26505, r26485)
- Fix: Reading console input on dedicated server relied on unspecified behaviour (r26496)
This commit is contained in:
frosch
2014-04-29 18:35:01 +00:00
committed by Sergii Pylypenko
parent fd7f0c28f3
commit e69b50c898
4 changed files with 35 additions and 25 deletions
+1 -1
View File
@@ -377,7 +377,7 @@ void ReconsiderGameScriptLanguage()
if (_current_data == NULL) return;
char temp[MAX_PATH];
strecpy(temp, _current_language->file, temp + sizeof(temp));
strecpy(temp, _current_language->file, lastof(temp));
/* Remove the extension */
char *l = strrchr(temp, '.');