projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5994b62
)
Make --limit-rate [num] mean bytes. Seems I broke it back in november 2005...
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 1 Feb 2006 23:26:14 +0000
(23:26 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 1 Feb 2006 23:26:14 +0000
(23:26 +0000)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
549a4d8
..
6651bcf
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1512,7
+1512,9
@@
static ParameterError getparameter(char *flag, /* f or -long-flag */
char *unit;
curl_off_t value = curlx_strtoofft(nextarg, &unit, 0);
- if(strlen(unit) != 1)
+ if(!*unit)
+ unit="b";
+ else if(strlen(unit) > 1)
unit=(char *)"w"; /* unsupported */
switch(*unit) {