summaryrefslogtreecommitdiffstats
path: root/src/H5Fseq.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-10-02 16:57:56 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-10-02 16:57:56 (GMT)
commitd808a5b53a822a945eff7ff2ea3f77941e9e7ba2 (patch)
treebb104e2b49d09863f8d8664f50e27b00fe209af8 /src/H5Fseq.c
parent3f844d7ba1cd9b14e4ec9f4ab2f14f316dd9fbf3 (diff)
downloadhdf5-d808a5b53a822a945eff7ff2ea3f77941e9e7ba2.zip
hdf5-d808a5b53a822a945eff7ff2ea3f77941e9e7ba2.tar.gz
hdf5-d808a5b53a822a945eff7ff2ea3f77941e9e7ba2.tar.bz2
[svn-r4508] Purpose:
Document bug fix. Description: When reading or writing to chunked datasets and the data needed datatype conversion, and the amount of data was more than one conversion buffer, data in the conversion buffer was getting corrupted. Solution: Corrected error in advancing buffer pointer where it was being advanced by the number of elements instead of the number of bytes. Platforms tested: FreeBSD 4.4 (hawkwind)
Diffstat (limited to 'src/H5Fseq.c')
-rw-r--r--src/H5Fseq.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/H5Fseq.c b/src/H5Fseq.c
index 59e011b..2a1a41e 100644
--- a/src/H5Fseq.c
+++ b/src/H5Fseq.c
@@ -340,7 +340,7 @@ H5F_seq_readv(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout,
}
/* Increment the buffer offset */
- buf=(unsigned char *)buf+partial_size;
+ buf=(unsigned char *)buf+(partial_size*elmt_size);
/* Decrement the length of the sequence to read */
seq_len-=partial_size;
@@ -400,7 +400,7 @@ H5F_seq_readv(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout,
}
/* Increment the buffer offset */
- buf=(unsigned char *)buf+full_size;
+ buf=(unsigned char *)buf+(full_size*elmt_size);
/* Decrement the sequence length left */
seq_len-=full_size;
@@ -447,7 +447,7 @@ H5F_seq_readv(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout,
}
/* Increment the buffer offset */
- buf=(unsigned char *)buf+partial_size;
+ buf=(unsigned char *)buf+(partial_size*elmt_size);
/* Decrement the length of the sequence to read */
seq_len-=partial_size;
@@ -723,7 +723,7 @@ H5F_seq_writev(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout,
}
/* Increment the buffer offset */
- buf=(const unsigned char *)buf+partial_size;
+ buf=(const unsigned char *)buf+(partial_size*elmt_size);
/* Decrement the length of the sequence to read */
seq_len-=partial_size;
@@ -783,7 +783,7 @@ H5F_seq_writev(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout,
}
/* Increment the buffer offset */
- buf=(const unsigned char *)buf+full_size;
+ buf=(const unsigned char *)buf+(full_size*elmt_size);
/* Decrement the sequence length left */
seq_len-=full_size;
@@ -830,7 +830,7 @@ H5F_seq_writev(H5F_t *f, hid_t dxpl_id, const struct H5O_layout_t *layout,
}
/* Increment the buffer offset */
- buf=(const unsigned char *)buf+partial_size;
+ buf=(const unsigned char *)buf+(partial_size*elmt_size);
/* Decrement the length of the sequence to read */
seq_len-=partial_size;