(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:
@@ -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, '.');
|
||||
|
||||
Reference in New Issue
Block a user