aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--table.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/table.c b/table.c
index 221db92..d0aed6c 100644
--- a/table.c
+++ b/table.c
@@ -428,8 +428,9 @@ visible_length(char *str)
Str tagbuf = Strnew();
char *t, *r2;
int amp_len = 0;
+ char *strz = str + strlen(str);
- while (*str) {
+ while (str < strz) {
prev_status = status;
if (next_status(*str, &status)) {
#ifdef USE_M17N