File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -770,11 +770,11 @@ void xccdf_item_add_applicable_platform(struct xccdf_item *item, xmlTextReaderPt
770
770
size_t match_len = ovector [1 ] - ovector [0 ];
771
771
/* match_len + 1 underscore + 1 zero byte */
772
772
char * alternate_platform_idref = malloc (match_len + 1 + 1 );
773
- int first_group_start = ovector [2 ];
774
- int first_group_end = ovector [3 ];
773
+ const int first_group_start = ovector [2 ];
774
+ const int first_group_end = ovector [3 ];
775
775
size_t first_group_len = first_group_end - first_group_start ;
776
- int second_group_start = ovector [4 ];
777
- int second_group_end = ovector [5 ];
776
+ const int second_group_start = ovector [4 ];
777
+ const int second_group_end = ovector [5 ];
778
778
size_t second_group_len = second_group_end - second_group_start ;
779
779
char * aptr = alternate_platform_idref ;
780
780
strncpy (aptr , platform_idref + first_group_start , first_group_len );
You can’t perform that action at this time.
0 commit comments