]> granicus.if.org Git - php/commitdiff
Fixes PR: 7245
authorfoobar <sniper@php.net>
Fri, 27 Oct 2000 20:47:36 +0000 (20:47 +0000)
committerfoobar <sniper@php.net>
Fri, 27 Oct 2000 20:47:36 +0000 (20:47 +0000)
ext/ftp/ftp.c

index a750265fccb7289f9bd365db85df42333b53baeb..b2a091a7101175ea661bb29ce8f9d06fcc9ac6f2 100644 (file)
@@ -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;