From 212469354000d424cabe9cdc8265aa802450502f Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Thu, 15 Dec 2016 22:53:04 +0900 Subject: Revert "Prevent overflow beyond the end of string in visible_length()" This reverts commit a932f78a6d8c105036ffeedf01215c1f6a0e0b71. --- table.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'table.c') 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 -- cgit v1.2.3