From: foobar Date: Fri, 27 Oct 2000 20:47:36 +0000 (+0000) Subject: Fixes PR: 7245 X-Git-Tag: php-4.0.4RC3~485 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11af318a6213a71b09d564ef0ba249db980fa986;p=php Fixes PR: 7245 --- diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c index a750265fcc..b2a091a710 100644 --- a/ext/ftp/ftp.c +++ b/ext/ftp/ftp.c @@ -732,7 +732,7 @@ ftp_putcmd(ftpbuf_t *ftp, const char *cmd, const char *args) char *data; /* build the output buffer */ - if (args) { + if (args && args[0]) { /* "cmd args\r\n\0" */ if (strlen(cmd) + strlen(args) + 4 > FTP_BUFSIZE) return 0;