mirror of
https://github.com/curl/curl.git
synced 2026-05-30 20:47:30 +03:00
parent
031c367531
commit
a69a4d222d
1 changed files with 2 additions and 2 deletions
|
|
@ -2419,8 +2419,8 @@ static CURLcode ftp_state_get_resp(struct connectdata *conn,
|
|||
char *bytes;
|
||||
char *buf = data->state.buffer;
|
||||
bytes = strstr(buf, " bytes");
|
||||
if(bytes--) {
|
||||
long in = (long)(bytes-buf);
|
||||
if(bytes) {
|
||||
long in = (long)(--bytes-buf);
|
||||
/* this is a hint there is size information in there! ;-) */
|
||||
while(--in) {
|
||||
/* scan for the left parenthesis and break there */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue