Loading lib/ftp.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -2419,8 +2419,8 @@ static CURLcode ftp_state_get_resp(struct connectdata *conn, char *bytes; char *bytes; char *buf = data->state.buffer; char *buf = data->state.buffer; bytes = strstr(buf, " bytes"); bytes = strstr(buf, " bytes"); if(bytes--) { if(bytes) { long in = (long)(bytes-buf); long in = (long)(--bytes-buf); /* this is a hint there is size information in there! ;-) */ /* this is a hint there is size information in there! ;-) */ while(--in) { while(--in) { /* scan for the left parenthesis and break there */ /* scan for the left parenthesis and break there */ Loading Loading
lib/ftp.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -2419,8 +2419,8 @@ static CURLcode ftp_state_get_resp(struct connectdata *conn, char *bytes; char *bytes; char *buf = data->state.buffer; char *buf = data->state.buffer; bytes = strstr(buf, " bytes"); bytes = strstr(buf, " bytes"); if(bytes--) { if(bytes) { long in = (long)(bytes-buf); long in = (long)(--bytes-buf); /* this is a hint there is size information in there! ;-) */ /* this is a hint there is size information in there! ;-) */ while(--in) { while(--in) { /* scan for the left parenthesis and break there */ /* scan for the left parenthesis and break there */ Loading