summaryrefslogtreecommitdiffstats
path: root/src/H5Tvlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Tvlen.c')
-rw-r--r--src/H5Tvlen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Tvlen.c b/src/H5Tvlen.c
index fc898c5..042c6c1 100644
--- a/src/H5Tvlen.c
+++ b/src/H5Tvlen.c
@@ -368,7 +368,7 @@ herr_t H5T_vlen_str_mem_write(hid_t plist_id, H5F_t UNUSED *f, void *vl_addr, vo
HRETURN_ERROR(H5E_RESOURCE, H5E_NOSPACE, FAIL, "memory allocation failed for VL data");
} /* end else */
- len=(size_t)seq_len*base_size;
+ len=(size_t)seq_len*(size_t)base_size;
HDmemcpy(*s,buf,len);
(*s)[len]='\0';