summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-05-13 22:09:52 +0000
committerache <ache@FreeBSD.org>1995-05-13 22:09:52 +0000
commitcf6b207e9dcedad8dcfe450085bf14cea5b4253f (patch)
tree53ad99f6d2fe86e225f657b07a2b32ab0cd1392f
parent87576e5822237fb99b6542e40cee0090199f3eb4 (diff)
downloadFreeBSD-src-cf6b207e9dcedad8dcfe450085bf14cea5b4253f.zip
FreeBSD-src-cf6b207e9dcedad8dcfe450085bf14cea5b4253f.tar.gz
Fix FtpPasv to not return address of local variable, close PR 399
Submitted by: John Capo <jc@irbs.com>
-rw-r--r--lib/libftp/FtpPasv.c2
1 files changed, 1 insertions, 1 deletions
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))
OpenPOWER on IntegriCloud