From 11af318a6213a71b09d564ef0ba249db980fa986 Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 27 Oct 2000 20:47:36 +0000 Subject: [PATCH] Fixes PR: 7245 --- ext/ftp/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.50.1