summaryrefslogtreecommitdiffstats
path: root/crypto/heimdal/appl/ftp/ftp/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/heimdal/appl/ftp/ftp/ftp.c')
-rw-r--r--crypto/heimdal/appl/ftp/ftp/ftp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/heimdal/appl/ftp/ftp/ftp.c b/crypto/heimdal/appl/ftp/ftp/ftp.c
index fcf0bc4..186aba8 100644
--- a/crypto/heimdal/appl/ftp/ftp/ftp.c
+++ b/crypto/heimdal/appl/ftp/ftp/ftp.c
@@ -32,7 +32,7 @@
*/
#include "ftp_locl.h"
-RCSID ("$Id: ftp.c,v 1.74 2002/09/04 22:00:12 joda Exp $");
+RCSID ("$Id: ftp.c,v 1.74.4.1 2002/10/21 14:26:31 joda Exp $");
struct sockaddr_storage hisctladdr_ss;
struct sockaddr *hisctladdr = (struct sockaddr *)&hisctladdr_ss;
@@ -396,6 +396,9 @@ getreply (int expecteof)
if (p) {
p++;
strlcpy(pasv, p, sizeof(pasv));
+ p = strrchr(pasv, ')');
+ if (p)
+ *p = '\0';
}
}
return code / 100;
OpenPOWER on IntegriCloud