diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-12-15 13:53:04 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-12-15 13:53:04 +0000 |
commit | 212469354000d424cabe9cdc8265aa802450502f (patch) | |
tree | 5ecb4b94b8c7b795b1628817664db9d33bdf3e50 | |
parent | Revert "Prevent overflow beyond the end of string in skip_space()" (diff) | |
download | w3m-212469354000d424cabe9cdc8265aa802450502f.tar.gz w3m-212469354000d424cabe9cdc8265aa802450502f.zip |
Revert "Prevent overflow beyond the end of string in visible_length()"
This reverts commit a932f78a6d8c105036ffeedf01215c1f6a0e0b71.
-rw-r--r-- | table.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |