diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-04-24 14:14:23 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-04-24 14:14:23 +0200 |
commit | 1778135a9ff3b7e5683dc8ab66d75d7b2a2951d1 (patch) | |
tree | ba11af9293b32638fb2834633354589f997e43fc /docs/examples | |
parent | 300f40eb9948eef7e7e3645da1ec341cddff2841 (diff) | |
download | curl-1778135a9ff3b7e5683dc8ab66d75d7b2a2951d1.tar.gz |
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
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/http2-upload.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/http2-upload.c b/docs/examples/http2-upload.c index d7aa320ed..2a08b89db 100644 --- a/docs/examples/http2-upload.c +++ b/docs/examples/http2-upload.c @@ -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 * 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, void *userp) { - char timebuf[20]; + char timebuf[60]; const char *text; int num = hnd2num(handle); static time_t epoch_offset; |