summaryrefslogtreecommitdiff
path: root/src/game
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/game
parent6ad6845f8ca35920a7e7b61f1007ef388ccbb598 (diff)
downloadopenttd-5e90054f208028909dec2c5b3d66994fa2c189db.tar.xz
(svn r26511) -Codechange: use strecpy in game_text
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_text.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/game_text.cpp b/src/game/game_text.cpp
index f717e2dc0..d4a137904 100644
--- a/src/game/game_text.cpp
+++ b/src/game/game_text.cpp
@@ -151,11 +151,11 @@ struct StringListReader : StringReader {
{
}
- /* virtual */ char *ReadLine(char *buffer, size_t size)
+ /* virtual */ char *ReadLine(char *buffer, const char *last)
{
if (this->p == this->end) return NULL;
- strncpy(buffer, *this->p, size);
+ strecpy(buffer, *this->p, last);
this->p++;
return buffer;