From eba7f423fc8df852ed6f78c7f181213786a0ffed Mon Sep 17 00:00:00 2001
From: Tatsuya Kinoshita <tats@debian.org>
Date: Sun, 18 Dec 2016 00:20:06 +0900
Subject: Revert "Prevent overflow beyond the end of string in
 form_update_line()"

This reverts commit e0efc127ff20cbeb931847af1c9b353056340fbd.
---
 form.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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++;
-- 
cgit v1.2.3