aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-12-15 13:53:04 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-12-15 13:53:04 +0000
commit212469354000d424cabe9cdc8265aa802450502f (patch)
tree5ecb4b94b8c7b795b1628817664db9d33bdf3e50 /table.c
parentRevert "Prevent overflow beyond the end of string in skip_space()" (diff)
downloadw3m-212469354000d424cabe9cdc8265aa802450502f.tar.gz
w3m-212469354000d424cabe9cdc8265aa802450502f.zip
Revert "Prevent overflow beyond the end of string in visible_length()"
This reverts commit a932f78a6d8c105036ffeedf01215c1f6a0e0b71.
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