Skip to content

Commit 8915a8d

Browse files
committed
Merge branch 'master' into add_new_test_python_0725
2 parents 6808dcc + 2e4754d commit 8915a8d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

srcCxx/shape_main.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,7 @@ class ShapeOptions {
936936
parse_ok = false;
937937
}
938938
datafrag_size = converted_param;
939+
break;
939940
}
940941
case 'F':
941942
cft_expression = strdup(optarg);
@@ -2037,7 +2038,9 @@ class ShapeApplication {
20372038
if (options->additional_payload_size > 0) {
20382039
int size = options->additional_payload_size;
20392040
DDS_UInt8Seq_ensure_length(&shape.additional_payload_size FIELD_ACCESSOR, size, size);
2040-
*DDS_UInt8Seq_get_reference(&shape.additional_payload_size FIELD_ACCESSOR, size - 1) = 255;
2041+
for (int i = 0; i < size; ++i) {
2042+
*DDS_UInt8Seq_get_reference(&shape.additional_payload_size FIELD_ACCESSOR, i) = 255;
2043+
}
20412044
} else {
20422045
DDS_UInt8Seq_ensure_length(&shape.additional_payload_size FIELD_ACCESSOR, 0, 0);
20432046
}

0 commit comments

Comments
 (0)