summaryrefslogtreecommitdiff
path: root/texteff.c
diff options
context:
space:
mode:
Diffstat (limited to 'texteff.c')
-rw-r--r--texteff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/texteff.c b/texteff.c
index 982b964a9..cd1d0a9d3 100644
--- a/texteff.c
+++ b/texteff.c
@@ -246,7 +246,7 @@ void AddTextEffect(StringID msg, int x, int y, uint16 duration)
te->params_1 = GetDParam(0);
te->params_2 = GetDParam(4);
- GetString(buffer, msg);
+ GetString(buffer, msg, lastof(buffer));
w = GetStringBoundingBox(buffer).width;
te->x = x - (w >> 1);