mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
<couldn't resist>
Use a more appropriate variable name </couldn't resist>
This commit is contained in:
parent
429b09ee04
commit
1d3542a38f
10
lib/ftp.c
10
lib/ftp.c
@ -113,7 +113,7 @@ static CURLcode AllowServerConnect(struct UrlData *data,
|
|||||||
dt.tv_sec = 10;
|
dt.tv_sec = 10;
|
||||||
dt.tv_usec = 0;
|
dt.tv_usec = 0;
|
||||||
|
|
||||||
switch ( select(sock+1, &rdset, NULL, NULL, &dt)) {
|
switch (select(sock+1, &rdset, NULL, NULL, &dt)) {
|
||||||
case -1: /* error */
|
case -1: /* error */
|
||||||
/* let's die here */
|
/* let's die here */
|
||||||
failf(data, "Error while waiting for server connect");
|
failf(data, "Error while waiting for server connect");
|
||||||
@ -264,11 +264,11 @@ int Curl_GetFTPResponse(int sockfd,
|
|||||||
/* This is the end of the last line, copy the last
|
/* This is the end of the last line, copy the last
|
||||||
* line to the start of the buffer and zero terminate,
|
* line to the start of the buffer and zero terminate,
|
||||||
* for old times sake (and krb4)! */
|
* for old times sake (and krb4)! */
|
||||||
char *moo;
|
char *meow;
|
||||||
int i;
|
int i;
|
||||||
for(moo=line_start, i=0; moo<ptr; moo++, i++)
|
for(meow=line_start, i=0; meow<ptr; meow++, i++)
|
||||||
buf[i] = *moo;
|
buf[i] = *meow;
|
||||||
moo[i]=0; /* zero terminate */
|
meow[i]=0; /* zero terminate */
|
||||||
keepon=FALSE;
|
keepon=FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user