From c361938c8edcaef36ebfe5325ce75e7f7d4c2cc3 Mon Sep 17 00:00:00 2001 From: Greg Sjaardema Date: Tue, 12 Jul 2016 08:12:23 -0400 Subject: [PATCH] Fix att_name size There was a mismatch between the allocated size of att_name and the size that H5Aget_name was told the size was. --- libsrc4/nc4hdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc4/nc4hdf.c b/libsrc4/nc4hdf.c index 1fb08202e..782cae64a 100644 --- a/libsrc4/nc4hdf.c +++ b/libsrc4/nc4hdf.c @@ -1952,7 +1952,7 @@ write_nc3_strict_att(hid_t hdf_grpid) { hid_t attid = 0, spaceid = 0; int one = 1, num, a; - char att_name[NC_MAX_NAME + 1]; + char att_name[NC_MAX_HDF5_NAME + 1]; int retval = NC_NOERR; /* If the attribute already exists, call that a success and return