summaryrefslogtreecommitdiffstats
path: root/src/H5Tvlen.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-05-20 13:39:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-05-20 13:39:57 (GMT)
commitc581a0723521cd20d62f16af39457106735a8629 (patch)
tree84034068e6c6db10fb0386cae36a5510cde54d5a /src/H5Tvlen.c
parente12beea6244555171693821481db5c31e1090e0e (diff)
downloadhdf5-c581a0723521cd20d62f16af39457106735a8629.zip
hdf5-c581a0723521cd20d62f16af39457106735a8629.tar.gz
hdf5-c581a0723521cd20d62f16af39457106735a8629.tar.bz2
[svn-r5439] Purpose:
Code cleanup Description: Change variable casts to use H5_ASSIGN_OVERFLOW, or check for overflow before the cast with H5_CHECK_OVERFLOW. Platforms tested: FreeBSD 4.5 (sleipnir)
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 042c6c1..3fac495 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*(size_t)base_size;
+ H5_ASSIGN_OVERFLOW(len,(seq_len*base_size),hsize_t,size_t);
HDmemcpy(*s,buf,len);
(*s)[len]='\0';