summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDamien Couderc <couderc@cvs.openbsd.org>2003-01-26 19:29:46 +0000
committerDamien Couderc <couderc@cvs.openbsd.org>2003-01-26 19:29:46 +0000
commitcdc19d806a94501648f88812fff67a58c17f6b66 (patch)
treed7290fca3f183a48eb961c047a6b96e95e6422a6 /libexec
parent7ee26f9d9fb1d35d35355b70f4d0dfeb277a9f68 (diff)
Removing leading spaces can result in a failure with multiline commands. Ok millert.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftp-proxy/getline.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/libexec/ftp-proxy/getline.c b/libexec/ftp-proxy/getline.c
index 6050b2d5e0e..635a668694c 100644
--- a/libexec/ftp-proxy/getline.c
+++ b/libexec/ftp-proxy/getline.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: getline.c,v 1.12 2002/12/19 18:19:10 deraadt Exp $ */
+/* $OpenBSD: getline.c,v 1.13 2003/01/26 19:29:45 couderc Exp $ */
/*
* Copyright (c) 1985, 1988 Regents of the University of California.
@@ -41,7 +41,6 @@
#include <netinet/in.h>
#include <arpa/telnet.h>
-#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
@@ -253,10 +252,6 @@ telnet_getline(struct csiob *iobp, struct csiob *telnet_passthrough)
/* +1 is for the newline */
clen = (ix+1) - iobp->next_byte;
- while (clen > 0 && isspace(iobp->io_buffer[iobp->next_byte])) {
- iobp->next_byte++;
- clen--;
- }
memcpy(iobp->line_buffer, &iobp->io_buffer[iobp->next_byte],
clen);
iobp->next_byte += clen;