about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2012-11-17 01:33:36 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2012-11-17 01:33:36 -0500
commit0bf7dbb3033d5a0ed2dd2c372a4e2434b8a034cf (patch)
treebe6098f59bcc03de3a8b66b542800085bb790c4f /src
parentf769d6297419caafe9cc3d62522f3f4d9a859dab (diff)
downloadlynx-snapshots-0bf7dbb3033d5a0ed2dd2c372a4e2434b8a034cf.tar.gz
snapshot of project "lynx", label v2-8-8dev_14i
Diffstat (limited to 'src')
-rw-r--r--src/GridText.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/GridText.c b/src/GridText.c
index 1d1bffb7..ad4dc232 100644
--- a/src/GridText.c
+++ b/src/GridText.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: GridText.c,v 1.240 2012/11/15 00:48:46 tom Exp $
+ * $LynxId: GridText.c,v 1.241 2012/11/16 10:55:31 tom Exp $
  *
  *		Character grid hypertext object
  *		===============================
@@ -13350,14 +13350,10 @@ void HText_EditTextField(LinkInfo * form_link)
 
 	if ((ebuf = readEditedFile(ed_temp)) != 0) {
 	    /*
-	     * Only use the first line of the result, and only that up to
-	     * the size of the field.
+	     * Only use the first line of the result.
 	     */
 	    for (p = ebuf; *p != '\0'; ++p) {
-		if ((p - ebuf) >= form->size - 1) {
-		    *p = '\0';
-		    break;
-		} else if (*p == '\n' || *p == '\r') {
+		if (*p == '\n' || *p == '\r') {
 		    *p = '\0';
 		    break;
 		}