1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 22:45:03 -05:00

examples/http2-upload: expand buffer to avoid silly warning

http2-upload.c:135:44: error: ‘%02d’ directive output may be truncated
writing between 2 and 11 bytes into a region of size between 8 and 17
This commit is contained in:
Daniel Stenberg 2018-04-24 14:14:23 +02:00
parent 300f40eb99
commit 1778135a9f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____| * \___|\___/|_| \_\_____|
* *
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al. * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
* *
* This software is licensed as described in the file COPYING, which * This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms * you should have received as part of this distribution. The terms
@ -113,7 +113,7 @@ int my_trace(CURL *handle, curl_infotype type,
char *data, size_t size, char *data, size_t size,
void *userp) void *userp)
{ {
char timebuf[20]; char timebuf[60];
const char *text; const char *text;
int num = hnd2num(handle); int num = hnd2num(handle);
static time_t epoch_offset; static time_t epoch_offset;