summaryrefslogtreecommitdiff
path: root/src/gfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gfx.cpp')
-rw-r--r--src/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 75189ab6a..9b613ceef 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -986,7 +986,7 @@ skip_cont:;
int DoDrawStringTruncated(const char *str, int x, int y, uint16 color, uint maxw)
{
char buffer[DRAW_STRING_BUFFER];
- ttd_strlcpy(buffer, str, sizeof(buffer));
+ strecpy(buffer, str, lastof(buffer));
TruncateString(buffer, maxw);
return DoDrawString(buffer, x, y, color);
}