diff options
author | rubidium <rubidium@openttd.org> | 2014-04-23 21:23:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-23 21:23:21 +0000 |
commit | 21f991e2353d99064555acf7996b51c46bbd44a5 (patch) | |
tree | 98bcaf86aac6edddf70877a13a71b8337049254d /src/strings.cpp | |
parent | 160ad31028c6d089ee9bc69581c9a25da00912aa (diff) | |
download | openttd-21f991e2353d99064555acf7996b51c46bbd44a5.tar.xz |
(svn r26489) -Codechange: properly account for the end of buffers in the file io code instead of assuming MAX_PATH is okay
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 23a8804ab..1b95f4251 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -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?)"); |