summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2022-02-11 13:39:52 (GMT)
committerGitHub <noreply@github.com>2022-02-11 13:39:52 (GMT)
commit4ce6373a0ba10250b4eed293653e55e348812012 (patch)
treeb1c42e1ea8ac84dc166f461b015857df216fb23a
parent7bfa873983414f98aaa3489962681b9105ccb562 (diff)
downloadhdf5-4ce6373a0ba10250b4eed293653e55e348812012.zip
hdf5-4ce6373a0ba10250b4eed293653e55e348812012.tar.gz
hdf5-4ce6373a0ba10250b4eed293653e55e348812012.tar.bz2
Make a buffer bigger: GCC 8.3.0 warned that a `snprintf` may be (#1403)
truncated because the recipient buffer was too small, and the warning is one that we promote to an error. Now there is a warning that the buffer is too big (-Wlarger-than=), but we don't promote those to errors, yet.
-rw-r--r--tools/src/h5perf/sio_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/src/h5perf/sio_engine.c b/tools/src/h5perf/sio_engine.c
index 98cb920..95ec3ce 100644
--- a/tools/src/h5perf/sio_engine.c
+++ b/tools/src/h5perf/sio_engine.c
@@ -1267,7 +1267,7 @@ done:
static void
do_cleanupfile(iotype iot, char *filename)
{
- char temp[2048];
+ char temp[4096 + sizeof("-?.h5")];
int j;
hid_t driver;