diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-12-15 13:52:05 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-12-15 13:52:05 +0000 |
commit | 6622b6520adddabcb960963bdde7e687846ed5d4 (patch) | |
tree | c67cda5ea67db03b2d8d6ce240c8fa9a55574738 | |
parent | Revert "Prevent overflow beyond the end of string in visible_length_plain()" (diff) | |
download | w3m-6622b6520adddabcb960963bdde7e687846ed5d4.tar.gz w3m-6622b6520adddabcb960963bdde7e687846ed5d4.zip |
Revert "Prevent overflow beyond the end of string in skip_space()"
This reverts commit e757b43bcf8c439c167f62b6d3317ee9518cabbf.
-rw-r--r-- | table.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2251,7 +2251,6 @@ skip_space(struct table *t, char *line, struct table_linfo *linfo, Str prevchar = linfo->prevchar; int w = linfo->length; int min = 1; - char *linez; if (*line == '<' && line[strlen(line) - 1] == '>') { if (checkminimum) @@ -2259,8 +2258,7 @@ skip_space(struct table *t, char *line, struct table_linfo *linfo, return 0; } - linez = line + strlen(line); - while (line < linez) { + while (*line) { char *save = line, *c = line; int ec, len, wlen, plen; ctype = get_mctype(line); |