diff options
author | Yang Tse <yangsita@gmail.com> | 2010-12-02 18:46:13 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-12-02 18:46:13 +0100 |
commit | 07f60235b06a172a98082d11f065c13f7ecb1ec0 (patch) | |
tree | 2a50907dac005783e8b6701b7e476fd679575586 /lib/gopher.c | |
parent | 5580fb2b9cb392f909d39b04292d75b3611197f0 (diff) |
fix compiler warning: rounding, sign extension, or loss of accuracy may result
Diffstat (limited to 'lib/gopher.c')
-rw-r--r-- | lib/gopher.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gopher.c b/lib/gopher.c index aa9c45b0e..3d8fcffda 100644 --- a/lib/gopher.c +++ b/lib/gopher.c @@ -78,6 +78,7 @@ #include "rawstr.h" #include "select.h" #include "url.h" +#include "warnless.h" #define _MPRINTF_REPLACE /* use our functions only */ #include <curl/mprintf.h> @@ -156,7 +157,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done) /* We use Curl_write instead of Curl_sendf to make sure the entire buffer is sent, which could be sizeable with long selectors. */ - k = strlen(sel); + k = curlx_uztosz(strlen(sel)); for(;;) { result = Curl_write(conn, sockfd, sel, k, &amount); |