summaryrefslogtreecommitdiff
path: root/src/gamelog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gamelog.cpp')
-rw-r--r--src/gamelog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gamelog.cpp b/src/gamelog.cpp
index 029f43b70..b57f7a47a 100644
--- a/src/gamelog.cpp
+++ b/src/gamelog.cpp
@@ -394,7 +394,7 @@ void GamelogRevision()
LoggedChange *lc = GamelogChange(GLCT_REVISION);
if (lc == NULL) return;
- strncpy(lc->revision.text, _openttd_revision, lengthof(lc->revision.text));
+ strecpy(lc->revision.text, _openttd_revision, lastof(lc->revision.text));
lc->revision.slver = SAVEGAME_VERSION;
lc->revision.modified = _openttd_revision_modified;
lc->revision.newgrf = _openttd_newgrf_version;