summaryrefslogtreecommitdiffstats
path: root/src/H5Dfill.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2010-08-20 21:57:56 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2010-08-20 21:57:56 (GMT)
commitc18f8294a5d93a9bf036dc53882049e1c9891e2d (patch)
treee5fc39cdfb61c662201b00866df945c9f9418f27 /src/H5Dfill.c
parent47c3bc7540869f53f0b734c68d3289835f0a546d (diff)
downloadhdf5-c18f8294a5d93a9bf036dc53882049e1c9891e2d.zip
hdf5-c18f8294a5d93a9bf036dc53882049e1c9891e2d.tar.gz
hdf5-c18f8294a5d93a9bf036dc53882049e1c9891e2d.tar.bz2
[svn-r19273] Description:
Correct an off-by-one oversight with the valgrind changes in r19272. Tested on: FreeBSD/32 6.3 (duty) in debug mode FreeBSD/64 6.3 (liberty) w/C++ & FORTRAN, in debug mode Linux/32 2.6 (jam) w/PGI compilers, w/default API=1.8.x, w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-amd64 2.6 (amani) w/Intel compilers, w/default API=1.6.x, w/C++ & FORTRAN, in production mode Solaris/32 2.10 (linew) w/deprecated symbols disabled, w/C++ & FORTRAN, w/szip filter, w/threadsafe, in production mode Linux/PPC 2.6 (heiwa) w/C++ & FORTRAN, w/threadsafe, in debug mode Linux/64-ia64 2.6 (cobalt) w/Intel compilers, w/C++ & FORTRAN, in production mode Linux/64-amd64 2.6 (abe) w/parallel, w/FORTRAN, in debug mode
Diffstat (limited to 'src/H5Dfill.c')
-rw-r--r--src/H5Dfill.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Dfill.c b/src/H5Dfill.c
index f6e07f2..cf78b94 100644
--- a/src/H5Dfill.c
+++ b/src/H5Dfill.c
@@ -585,7 +585,7 @@ H5D_fill_refill_vl(H5D_fill_buf_info_t *fb_info, size_t nelmts, hid_t dxpl_id)
HGOTO_ERROR(H5E_DATASET, H5E_CANTCONVERT, FAIL, "data type conversion failed")
/* Replicate the fill value into the cached buffer */
- H5V_array_fill((void *)((unsigned char *)fb_info->fill_buf + fb_info->mem_elmt_size), fb_info->fill_buf, fb_info->mem_elmt_size, nelmts);
+ H5V_array_fill((void *)((unsigned char *)fb_info->fill_buf + fb_info->mem_elmt_size), fb_info->fill_buf, fb_info->mem_elmt_size, (nelmts - 1));
/* Reset the entire background buffer, if necessary */
if(H5T_path_bkg(fb_info->mem_to_dset_tpath))