summaryrefslogtreecommitdiffstats
path: root/src/H5F.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5F.c')
-rw-r--r--src/H5F.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5F.c b/src/H5F.c
index 9389e65..36f9506 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -1236,7 +1236,7 @@ H5F_open(const char *name, uintn flags, hid_t fcpl_id, hid_t fapl_id)
UINT32DECODE(p, driver_size);
/* Driver name and/or version */
- strncpy(driver_name, (const char *)p, 8);
+ HDstrncpy(driver_name, (const char *)p, 8);
driver_name[8] = '\0';
/* Read driver information and decode */