From 4ce6373a0ba10250b4eed293653e55e348812012 Mon Sep 17 00:00:00 2001 From: David Young Date: Fri, 11 Feb 2022 07:39:52 -0600 Subject: 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. --- tools/src/h5perf/sio_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12