From e7d6343ec158bd8dcd5730b11e639cc052292c08 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 14 May 1995 19:14:53 +0000 Subject: [PATCH] Fix error returning address of local array --- lib/libftp/FtpPwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libftp/FtpPwd.c b/lib/libftp/FtpPwd.c index fb74841b228..4299bccf128 100644 --- a/lib/libftp/FtpPwd.c +++ b/lib/libftp/FtpPwd.c @@ -16,7 +16,8 @@ Commercial usage is also possible with participation of it's author. char * FtpPwd(FTP * con) { - String tmp,tmp1; + String tmp; + static String tmp1; int i; if ( FtpSendMessage(con,"PWD") == QUIT )