aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-11-22 09:40:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-11-22 09:40:34 +0000
commit1c8da21083ade5c6f29b928e408d20a2e407b206 (patch)
tree169e7c92a215381b6542b8b776d3006339f29f8c
parent8f304d8167758596b99026facffe366b35537cd0 (diff)
Eric fixed a wild write
-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;
}