diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ph5example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ph5example.c b/examples/ph5example.c index 87632e5..23af477 100644 --- a/examples/ph5example.c +++ b/examples/ph5example.c @@ -934,7 +934,7 @@ mkfilenames(char *prefix) "Need to adjust the code to accommodate the large size.\n"); } for (i = 0; i < n; i++) { - sprintf(testfiles[i], "%s/ParaEg%d.h5", prefix, i); + snprintf(testfiles[i], PATH_MAX, "%s/ParaEg%d.h5", prefix, i); } return (0); } |