mirror of
https://github.com/curl/curl.git
synced 2026-07-26 14:17:50 +03:00
fixed --limit-rate
This commit is contained in:
parent
54cbd7e154
commit
8cb695a963
3 changed files with 6 additions and 1 deletions
|
|
@ -1513,7 +1513,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
curl_off_t value = curlx_strtoofft(nextarg, &unit, 0);
|
||||
|
||||
if(!*unit)
|
||||
unit="b";
|
||||
unit=(char *)"b";
|
||||
else if(strlen(unit) > 1)
|
||||
unit=(char *)"w"; /* unsupported */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue