summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-10-20 17:17:37 (GMT)
committerGitHub <noreply@github.com>2021-10-20 17:17:37 (GMT)
commite1c4209f9f179dcb72eae5e93166c2a6acd897c8 (patch)
tree93d13437d0505f72b4d8f525bc5ac89e2e69c766 /hl/test
parent6d4d0fb13db06895fc6ea5f98ae0b79b44aa98af (diff)
downloadhdf5-e1c4209f9f179dcb72eae5e93166c2a6acd897c8.zip
hdf5-e1c4209f9f179dcb72eae5e93166c2a6acd897c8.tar.gz
hdf5-e1c4209f9f179dcb72eae5e93166c2a6acd897c8.tar.bz2
Fixed HL_test_packet, incorrect length assignment (#1100)
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_packet_vlen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hl/test/test_packet_vlen.c b/hl/test/test_packet_vlen.c
index c668a07..6d6bf34 100644
--- a/hl/test/test_packet_vlen.c
+++ b/hl/test/test_packet_vlen.c
@@ -539,8 +539,8 @@ test_VLof_VLtype(void)
HDfprintf(stderr, "Cannot allocate memory for VL data! uu=%u\n", uu);
goto error;
}
- t1->len = vv * 1;
- for (ww = 0; ww < (vv * 1); ww++)
+ t1->len = vv + 1;
+ for (ww = 0; ww < (vv + 1); ww++)
((unsigned int *)t1->p)[ww] = uu * 100 + vv * 10 + ww;
} /* end for */
} /* end for */