aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2016-12-17 15:20:06 +0000
committerTatsuya Kinoshita <tats@debian.org>2016-12-17 15:20:06 +0000
commiteba7f423fc8df852ed6f78c7f181213786a0ffed (patch)
treea328546230d648055db7e18dcd0107f3100167da
parentUpdate ChangeLog (diff)
downloadw3m-eba7f423fc8df852ed6f78c7f181213786a0ffed.tar.gz
w3m-eba7f423fc8df852ed6f78c7f181213786a0ffed.zip
Revert "Prevent overflow beyond the end of string in form_update_line()"
This reverts commit e0efc127ff20cbeb931847af1c9b353056340fbd.
-rw-r--r--form.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/form.c b/form.c
index fdad786..34dc235 100644
--- a/form.c
+++ b/form.c
@@ -388,7 +388,7 @@ form_update_line(Line *line, char **str, int spos, int epos, int width,
prop[pos] = effect | PC_ASCII;
pos++;
}
- if (p < q && newline) {
+ if (newline) {
if (!FoldTextarea) {
while (*p && *p != '\r' && *p != '\n')
p++;