aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-12-15 13:45:48 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-12-15 13:45:48 +0000
commit3cb09150762bfc72b3b920ae76f8c50f6eb35fb0 (patch)
tree1ee27d6bb916b6e81bdcdd3255bd559fe683a6b2 /table.c
parentRevert "Prevent overflow beyond the end of string in textfieldrep()" (diff)
downloadw3m-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 'table.c')
-rw-r--r--table.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/table.c b/table.c
index 5c41c89..e996570 100644
--- a/table.c
+++ b/table.c
@@ -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++;