diff options
-rw-r--r-- | src/util/hdf5_recombiner.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/hdf5_recombiner.c b/src/util/hdf5_recombiner.c index 281fb60..ffd7e13 100644 --- a/src/util/hdf5_recombiner.c +++ b/src/util/hdf5_recombiner.c @@ -289,7 +289,8 @@ int main (int argc, char *argv[]) } /* build the input filename template */ - template = strdup (argv[1]); + template = (char *) malloc (strlen (argv[1]) + 2); + strcpy (template, argv[1]); template[tmp - argv[1] + 6] = 0; strcat (template, "%d.h5"); |