diff options
author | Dana Robinson <derobins@hdfgroup.org> | 2020-08-15 01:59:24 (GMT) |
---|---|---|
committer | Dana Robinson <derobins@hdfgroup.org> | 2020-08-15 01:59:24 (GMT) |
commit | 25520640b2b5db099aaf3509ae76dd07e31ece46 (patch) | |
tree | c353ad5006817223dc6e073a010e89ad956e8dc4 /tools/src/h5import/h5import.c | |
parent | 686dbefff5afe0a7572dccbb74ab826a24e6fcbf (diff) | |
download | hdf5-25520640b2b5db099aaf3509ae76dd07e31ece46.zip hdf5-25520640b2b5db099aaf3509ae76dd07e31ece46.tar.gz hdf5-25520640b2b5db099aaf3509ae76dd07e31ece46.tar.bz2 |
Misc normalizations with develop
Diffstat (limited to 'tools/src/h5import/h5import.c')
-rw-r--r-- | tools/src/h5import/h5import.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c index b11fe7f..4a642e0 100644 --- a/tools/src/h5import/h5import.c +++ b/tools/src/h5import/h5import.c @@ -3735,8 +3735,8 @@ static int getExternalFilename(struct Input *in, FILE *strm) return (-1); } - in->externFilename = (char *) HDmalloc ((size_t) (HDstrlen(temp)) * sizeof(char)); - (void) HDstrcpy(in->externFilename, temp); + in->externFilename = (char *) HDmalloc ((size_t) (HDstrlen(temp) + 1) * sizeof(char)); + (void) HDstrncpy(in->externFilename, temp, HDstrlen(temp) + 1); return (0); } |