File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments