diff options
author | Tatsuya Kinoshita <tats@debian.org> | 2016-12-15 13:45:48 +0000 |
---|---|---|
committer | Tatsuya Kinoshita <tats@debian.org> | 2016-12-15 13:45:48 +0000 |
commit | 3cb09150762bfc72b3b920ae76f8c50f6eb35fb0 (patch) | |
tree | 1ee27d6bb916b6e81bdcdd3255bd559fe683a6b2 | |
parent | Revert "Prevent overflow beyond the end of string in textfieldrep()" (diff) | |
download | w3m-3cb09150762bfc72b3b920ae76f8c50f6eb35fb0.tar.gz w3m-3cb09150762bfc72b3b920ae76f8c50f6eb35fb0.zip |
Revert "Prevent overflow beyond the end of string in visible_length_plain()"
This reverts commit f763b8ebf5441cb44d2c0234565fadd5eb1c87a5.
Diffstat (limited to '')
-rw-r--r-- | table.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -510,9 +510,8 @@ int visible_length_plain(char *str) { int len = 0, max_len = 0; - char *strz = str + strlen(str); - while (str < strz) { + while (*str) { if (*str == '\t') { do { len++; |