aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 6450a44e8..fed1af0d4 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -282,7 +282,7 @@ int Curl_GetFTPResponse(char *buf,
int i;
for(meow=line_start, i=0; meow<ptr; meow++, i++)
buf[i] = *meow;
- meow[i]=0; /* zero terminate */
+ *meow=0; /* zero terminate */
keepon=FALSE;
break;
}