summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gfx.cpp b/src/gfx.cpp
index 4880ffd08..48f559ce0 100644
--- a/src/gfx.cpp
+++ b/src/gfx.cpp
@@ -403,7 +403,7 @@ static int DrawString(int left, int right, int top, char *str, const char *last,
int initial_right = right;
int initial_top = top;
- if (truncate) TruncateString(str, right - left);
+ if (truncate) TruncateString(str, right - left + 1);
/*
* To support SETX and SETXY properly with RTL languages we have to