diff options
author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2018-09-16 22:04:49 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-01-04 23:50:48 +0100 |
commit | fa2d6ba84d7f87148738f3cbccf29016dd324f87 (patch) | |
tree | 7015e5aa21deac71011e72d36322dfbfc38423a2 /lib/transfer.c | |
parent | c7c362a24c0247644f9fde05e8ea353af4a94b04 (diff) |
printf: fix format specifiers
Closes #3426
Diffstat (limited to 'lib/transfer.c')
-rw-r--r-- | lib/transfer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c index 7483cf1f8..dd910d2ef 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2019, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -318,7 +318,7 @@ CURLcode Curl_fillreadbuffer(struct connectdata *conn, size_t bytes, /* if we're not handling trailing data, proceed as usual */ if(data->state.trailers_state != TRAILERS_SENDING) { hexlen = msnprintf(hexbuffer, sizeof(hexbuffer), - "%x%s", nread, endofline_native); + "%zx%s", nread, endofline_native); /* move buffer pointer */ data->req.upload_fromhere -= hexlen; |