diff options
-rw-r--r-- | ext/ftp/ftp.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |