From cf6b207e9dcedad8dcfe450085bf14cea5b4253f Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 13 May 1995 22:09:52 +0000 Subject: Fix FtpPasv to not return address of local variable, close PR 399 Submitted by: John Capo --- lib/libftp/FtpPasv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/libftp/FtpPasv.c b/lib/libftp/FtpPasv.c index d2959b7..3db132a 100644 --- a/lib/libftp/FtpPasv.c +++ b/lib/libftp/FtpPasv.c @@ -19,7 +19,7 @@ Commercial usage is also possible with participation of it's author. char * FtpPasv (FTP *ftp) { char *msg; - String PORT; + static String PORT; char *p=PORT; if FtpError(FtpCommand(ftp,"PASV","",227,EOF)) -- cgit v1.1