summaryrefslogtreecommitdiff
path: root/newgrf_text.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-10-21 23:51:02 +0000
committerpeter1138 <peter1138@openttd.org>2006-10-21 23:51:02 +0000
commitd279b51dff88ec3b065093ddfc060cb66a408ab2 (patch)
tree1311b5c3d8edfbcf909c9c4552f42d5641d33b70 /newgrf_text.c
parent7af4492c3bc7aebbdda18f4277f9df9914c0f71f (diff)
downloadopenttd-d279b51dff88ec3b065093ddfc060cb66a408ab2.tar.xz
(svn r6888) - Fix (r6884): Missed a couple of strecpy()s in newgrf text handling
Diffstat (limited to 'newgrf_text.c')
-rw-r--r--newgrf_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newgrf_text.c b/newgrf_text.c
index d89475f96..884e12ee4 100644
--- a/newgrf_text.c
+++ b/newgrf_text.c
@@ -305,7 +305,7 @@ char *GetGRFString(char *buff, uint16 stringid, const char* last)
/*Search the list of lang-strings of this stringid for current lang */
for (search_text = _grf_text[stringid].textholder; search_text != NULL; search_text = search_text->next) {
if (search_text->langid == _currentLangID) {
- return strecpy(buff, search_text->text, NULL);
+ return strecpy(buff, search_text->text, last);
}
/* If the current string is English or American, set it as the
@@ -316,7 +316,7 @@ char *GetGRFString(char *buff, uint16 stringid, const char* last)
}
/* If there is a fallback string, return that */
- if (default_text != NULL) return strecpy(buff, default_text->text, NULL);
+ if (default_text != NULL) return strecpy(buff, default_text->text, last);
/* Use the default string ID if the fallback string isn't available */
return GetString(buff, _grf_text[stringid].def_string, last);