File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -595,13 +595,13 @@ char *gc_normalize_block (char *block, char **message)
595
595
size_t len = s1 - comment - 4 ;
596
596
597
597
if (message && * message == NULL && !strncmp (comment , "(MSG," , 5 ) && (* message = malloc (len ))) {
598
+ comment += 5 ;
599
+ #if NGC_PARAMETERS_ENABLE
600
+ len = 0 ;
598
601
float value ;
599
602
char * s3 ;
600
603
uint_fast8_t char_counter = 0 ;
601
604
602
- len = 0 ;
603
- comment += 5 ;
604
-
605
605
// Trim leading spaces
606
606
while (* comment == ' ' )
607
607
comment ++ ;
@@ -638,6 +638,13 @@ char *gc_normalize_block (char *block, char **message)
638
638
}
639
639
}
640
640
}
641
+ #else
642
+ while (* comment == ' ' ) {
643
+ comment ++ ;
644
+ len -- ;
645
+ }
646
+ memcpy (* message , comment , len );
647
+ #endif
641
648
}
642
649
643
650
#if NGC_EXPRESSIONS_ENABLE
You can’t perform that action at this time.
0 commit comments