# Patch #6 for x3270 3.2.18.
# Fixes problems with the Transfer action, where numeric arguments (e.g.,
# Lrecl=127) were always rejected, and the 'crlf' option was being sent to the
# host, even for binary transfers.

--- x3270-3.2/ft.c	2001/12/25 03:40:21	1.13
+++ x3270-3.2/ft.c	2002/01/23 15:58:45
@@ -1869,7 +1869,7 @@
 				    case PARM_PRIMARY_SPACE:
 				    case PARM_SECONDARY_SPACE:
 					l = strtol(eq + 1, &ptr, 10);
-					if (ptr == eq + 1 || !*ptr) {
+					if (ptr == eq + 1 || *ptr) {
 						popup_an_error("Invalid option "
 							"value: '%s'", eq + 1);
 						return;
@@ -1954,7 +1954,7 @@
 	op[0] = '\0';
 	if (ascii_flag)
 		strcat(op, " ascii");
-	if (cr_flag)
+	if (ascii_flag && cr_flag)
 		strcat(op, " crlf");
 	if (append_flag && !receive_flag)
 		strcat(op, " append");
