summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-10-25 14:27:27 (GMT)
committerGitHub <noreply@github.com>2021-10-25 14:27:27 (GMT)
commit8124798cba9292ecdbf4211e3eecbdd40b2bdda2 (patch)
treea8c6432a94ba9431def00795e8f9643f880ab277 /hl
parentc8b702c6307337b736238f193d8ea1f1e038b742 (diff)
downloadhdf5-8124798cba9292ecdbf4211e3eecbdd40b2bdda2.zip
hdf5-8124798cba9292ecdbf4211e3eecbdd40b2bdda2.tar.gz
hdf5-8124798cba9292ecdbf4211e3eecbdd40b2bdda2.tar.bz2
Merge Fixed HL_test_packet, incorrect length assignment (#1102)
Diffstat (limited to 'hl')
-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 */