summaryrefslogtreecommitdiffstats
path: root/hl/tools/gif2h5
diff options
context:
space:
mode:
Diffstat (limited to 'hl/tools/gif2h5')
-rw-r--r--hl/tools/gif2h5/writehdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/tools/gif2h5/writehdf.c b/hl/tools/gif2h5/writehdf.c
index 5426c27..313b57e 100644
--- a/hl/tools/gif2h5/writehdf.c
+++ b/hl/tools/gif2h5/writehdf.c
@@ -95,7 +95,7 @@ char *GIFFileName;
fprintf(stderr , "strncpy failed\n");
exit(1);
}
- GroupName[VSNAMELENMAX] = '\0';
+ GroupName[VSNAMELENMAX - 1] = '\0';
if ((file_id = H5Fcreate(HDFName , H5F_ACC_TRUNC , H5P_DEFAULT , H5P_DEFAULT)) < 0) {