summaryrefslogtreecommitdiffstats
path: root/tools/test/perform/direct_write_perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/perform/direct_write_perf.c')
-rw-r--r--tools/test/perform/direct_write_perf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/perform/direct_write_perf.c b/tools/test/perform/direct_write_perf.c
index 2076cf4..1d7756b 100644
--- a/tools/test/perform/direct_write_perf.c
+++ b/tools/test/perform/direct_write_perf.c
@@ -655,7 +655,7 @@ main(void)
hid_t fapl = H5P_DEFAULT;
int i;
- sprintf(filename, "%s.h5", FILENAME[0]);
+ snprintf(filename, sizeof(filename), "%s.h5", FILENAME[0]);
create_file(fapl);
test_direct_write_uncompressed_data(fapl);