summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index d4a4d6f..1653921 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -418,7 +418,7 @@ H5O_dtype_encode_helper(uint8 **pp, const H5T_t *dt)
for (i = 0; i < dt->u.compnd.nmembs; i++) {
/* Name, multiple of eight bytes */
HDstrcpy ((char*)(*pp), dt->u.compnd.memb[i].name);
- n = strlen(dt->u.compnd.memb[i].name);
+ n = HDstrlen(dt->u.compnd.memb[i].name);
for (z=n+1; z%8; z++) (*pp)[z] = '\0';
*pp += z;