(svn r26505) -Fix (r23634, r26493): Incorrect usage of strecpy/strecat

This commit is contained in:
frosch
2014-04-24 19:09:17 +00:00
parent efd1c31864
commit 3232a64598
2 changed files with 5 additions and 5 deletions

View File

@@ -379,7 +379,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, '.');