diff options
author | jhendersonHDF <jhenderson@hdfgroup.org> | 2021-09-14 20:24:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-14 20:24:01 (GMT) |
commit | cd2ca91875be7d3ee98ab0131c32b9ee072509e5 (patch) | |
tree | bc73d8cd6acbe9f2f76dcbcc21374dc0b38e9908 /src/H5Eint.c | |
parent | 7c973deaf1e602cf165a39860e574a9b5468d164 (diff) | |
download | hdf5-cd2ca91875be7d3ee98ab0131c32b9ee072509e5.zip hdf5-cd2ca91875be7d3ee98ab0131c32b9ee072509e5.tar.gz hdf5-cd2ca91875be7d3ee98ab0131c32b9ee072509e5.tar.bz2 |
Fix several warnings (#720)
Diffstat (limited to 'src/H5Eint.c')
-rw-r--r-- | src/H5Eint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Eint.c b/src/H5Eint.c index b38833f..6438cd9 100644 --- a/src/H5Eint.c +++ b/src/H5Eint.c @@ -129,7 +129,7 @@ H5E__get_msg(const H5E_msg_t *msg, H5E_type_t *type, char *msg_str, size_t size) /* Copy the message into the user's buffer, if given */ if (msg_str) { - HDstrncpy(msg_str, msg->msg, MIN((size_t)(len + 1), size)); + HDstrncpy(msg_str, msg->msg, size); if ((size_t)len >= size) msg_str[size - 1] = '\0'; } /* end if */ |