diff options
author | Sean McBride <sean@rogue-research.com> | 2024-02-13 14:22:17 (GMT) |
---|---|---|
committer | Larry Knox <lrknox@hdfgroup.org> | 2024-02-14 22:11:03 (GMT) |
commit | 4aeaa9c2d47897c37409ee724cf83eae04617ab4 (patch) | |
tree | dc5baf544b8f0db38eb4d69dafe2cffefecae3e3 /tools | |
parent | b8574044c4259fb6959c97496fc28734d1ec1e55 (diff) | |
download | hdf5-4aeaa9c2d47897c37409ee724cf83eae04617ab4.zip hdf5-4aeaa9c2d47897c37409ee724cf83eae04617ab4.tar.gz hdf5-4aeaa9c2d47897c37409ee724cf83eae04617ab4.tar.bz2 |
Issue #1824: Replaced most remaining sprintf with safer snprint (#4003)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/test/h5dump/h5dumpgentest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c index aed3eda..e12690c 100644 --- a/tools/test/h5dump/h5dumpgentest.c +++ b/tools/test/h5dump/h5dumpgentest.c @@ -3884,7 +3884,7 @@ gent_multi(void) for (mt = H5FD_MEM_DEFAULT; mt < H5FD_MEM_NTYPES; mt++) { memb_fapl[mt] = H5P_DEFAULT; memb_map[mt] = mt; - sprintf(sv[mt], "%%s-%c.h5", multi_letters[mt]); + snprintf(sv[mt], 1024, "%%s-%c.h5", multi_letters[mt]); memb_name[mt] = sv[mt]; /*printf("memb_name[%d]=%s, memb_map[%d]=%d; ", mt, memb_name[mt], mt, memb_map[mt]);*/ memb_addr[mt] = (haddr_t)MAX(mt - 1, 0) * (HADDR_MAX / 10); |