Skip to content

Commit 8caf37f

Browse files
committed
wip
1 parent ea5e3a0 commit 8caf37f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scanner.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ void *tree_sitter_fortran_external_scanner_create() {
547547
int length = strlen(macro_id);
548548
char *new_str = (char *)ts_malloc((length + 1) * sizeof(char));
549549
strncpy(new_str, macro_id, length);
550+
new_str[length] = 0;
550551
array_push(macroIdsResult, new_str);
551552
// Keep splitting
552553
macro_id = strtok(NULL, ":");

0 commit comments

Comments
 (0)