From b0d0b0387496ea52aeb968b6b37f572b63ebb801 Mon Sep 17 00:00:00 2001 From: Michael Theall Date: Fri, 22 Jan 2016 14:28:55 -0600 Subject: [PATCH] Fix PWD response code --- source/ftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ftp.c b/source/ftp.c index 612e576..93fb8a1 100644 --- a/source/ftp.c +++ b/source/ftp.c @@ -2883,7 +2883,7 @@ FTP_DECLARE(PWD) path = escape_buffer(session->cwd, &len, true); if(path != NULL) { - i = sprintf(buffer, "256 \""); + i = sprintf(buffer, "257 \""); if(i + len + 3 > sizeof(buffer)) { /* buffer will overflow */