From dbc60edabf08540db18eb603e2901836423f2b0a Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Wed, 31 Mar 2004 20:43:40 +0000 Subject: [PATCH] Fixed bug #27809 (ftp_systype returns null on some ftp servers). --- ext/ftp/ftp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index 69a164c8b1..687dd19f0c 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -394,6 +394,9 @@ ftp_syst(ftpbuf_t *ftp) return NULL; } syst = ftp->inbuf; + while (*syst == ' ') { + syst++; + } if ((end = strchr(syst, ' '))) { *end = 0; } -- 2.50.1