summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main_gui.c b/main_gui.c
index ac298d620..7aee7faa8 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -2101,6 +2101,7 @@ extern GetNewsStringCallbackProc * const _get_news_string_callback[];
static bool DrawScrollingStatusText(NewsItem *ni, int pos)
{
+ char buf[512];
StringID str;
const char *s;
char *d;
@@ -2115,10 +2116,9 @@ static bool DrawScrollingStatusText(NewsItem *ni, int pos)
str = ni->string_id;
}
- GetString(str_buffr, str);
- assert(strlen(str_buffr) < sizeof(str_buffr) - 1);
+ GetString(buf, str);
- s = str_buffr;
+ s = buf;
d = buffer;
for(;;s++) {