summaryrefslogtreecommitdiffstats
path: root/src/H5Gint.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Gint.c')
-rw-r--r--src/H5Gint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Gint.c b/src/H5Gint.c
index 2d305a2..5531cc5 100644
--- a/src/H5Gint.c
+++ b/src/H5Gint.c
@@ -990,7 +990,7 @@ H5G_visit_cb(const H5O_link_t *lnk, void *_udata)
/* Add the path separator to the current path */
HDassert(udata->path[udata->curr_path_len] == '\0');
- HDstrncpy(&(udata->path[udata->curr_path_len]), "/", 2);
+ HDstrncpy(&(udata->path[udata->curr_path_len]), "/", (size_t)2);
udata->curr_path_len++;
/* Attempt to get the link info for this group */