From 8cb695a9633e13d4378d9dc8f2af51ffb97a086f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 1 Feb 2006 23:28:22 +0000 Subject: [PATCH] fixed --limit-rate --- CHANGES | 4 ++++ RELEASE-NOTES | 1 + src/main.c | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index d61a42b29..bcb0cf864 100644 --- a/CHANGES +++ b/CHANGES @@ -6,6 +6,10 @@ Changelog +Daniel (2 February 2006) +- Make --limit-rate [num] mean bytes. It used to be that but it broke in my + change done in November 2005. + Daniel (30 January 2006) - Added CURLOPT_LOCALPORT and CURLOPT_LOCALPORTRANGE to libcurl. Set with the curl tool with --local-port. Plain and simply set the range of ports to bind diff --git a/RELEASE-NOTES b/RELEASE-NOTES index ef9589cb9..899f366e6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -20,6 +20,7 @@ This release includes the following changes: This release includes the following bugfixes: + o plain --limit-rate [num] means bytes o re-creating a dead connection is no longer counted internally as a followed redirect and thus prevents a weird error that would occur if a FTP connection died on an attempted re-use diff --git a/src/main.c b/src/main.c index 6651bcf9a..44471be40 100644 --- a/src/main.c +++ b/src/main.c @@ -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 */