(svn r26489) -Codechange: properly account for the end of buffers in the file io code instead of assuming MAX_PATH is okay
This commit is contained in:
@@ -1954,7 +1954,7 @@ void InitializeLanguagePacks()
|
||||
|
||||
FOR_ALL_SEARCHPATHS(sp) {
|
||||
char path[MAX_PATH];
|
||||
FioAppendDirectory(path, lengthof(path), sp, LANG_DIR);
|
||||
FioAppendDirectory(path, lastof(path), sp, LANG_DIR);
|
||||
GetLanguageList(path);
|
||||
}
|
||||
if (_languages.Length() == 0) usererror("No available language packs (invalid versions?)");
|
||||
|
Reference in New Issue
Block a user