summaryrefslogtreecommitdiffstats
path: root/test/h5test.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2022-07-09 10:05:53 (GMT)
committerGitHub <noreply@github.com>2022-07-09 10:05:53 (GMT)
commit1227bc041118e1c9fb3fdd48c083186f5deb4676 (patch)
tree0cddd12b3652faaf7adf242b2ed936d127fae454 /test/h5test.c
parent57cc499009f49b40505b8b3c1ca3e405c6447a16 (diff)
downloadhdf5-1227bc041118e1c9fb3fdd48c083186f5deb4676.zip
hdf5-1227bc041118e1c9fb3fdd48c083186f5deb4676.tar.gz
hdf5-1227bc041118e1c9fb3fdd48c083186f5deb4676.tar.bz2
Sync with develop (#1863)feature/onion_vfd
Diffstat (limited to 'test/h5test.c')
-rw-r--r--test/h5test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/h5test.c b/test/h5test.c
index ac15043..f39825c 100644
--- a/test/h5test.c
+++ b/test/h5test.c
@@ -355,7 +355,7 @@ h5_reset(void)
* Cause the library to emit some diagnostics early so they don't
* interfere with other formatted output.
*/
- HDsprintf(filename, "/tmp/h5emit-%05d.h5", HDgetpid());
+ HDsnprintf(filename, sizeof(filename), "/tmp/h5emit-%05d.h5", HDgetpid());
H5E_BEGIN_TRY
{
hid_t file = H5Fcreate(filename, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);