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