summaryrefslogtreecommitdiff
path: root/src/strgen/strgen_base.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-25 17:43:09 +0000
committerrubidium <rubidium@openttd.org>2014-04-25 17:43:09 +0000
commit5e90054f208028909dec2c5b3d66994fa2c189db (patch)
treeb8bc5f01a124f13cfc5a2c8407702ce93414be7c /src/strgen/strgen_base.cpp
parent6ad6845f8ca35920a7e7b61f1007ef388ccbb598 (diff)
downloadopenttd-5e90054f208028909dec2c5b3d66994fa2c189db.tar.xz
(svn r26511) -Codechange: use strecpy in game_text
Diffstat (limited to 'src/strgen/strgen_base.cpp')
-rw-r--r--src/strgen/strgen_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strgen/strgen_base.cpp b/src/strgen/strgen_base.cpp
index ef30a4c8a..95d3291e4 100644
--- a/src/strgen/strgen_base.cpp
+++ b/src/strgen/strgen_base.cpp
@@ -821,7 +821,7 @@ void StringReader::ParseFile()
strecpy(_lang.digit_decimal_separator, ".", lastof(_lang.digit_decimal_separator));
_cur_line = 1;
- while (this->ReadLine(buf, sizeof(buf)) != NULL) {
+ while (this->ReadLine(buf, lastof(buf)) != NULL) {
rstrip(buf);
this->HandleString(buf);
_cur_line++;