We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5e3a0 commit 8caf37fCopy full SHA for 8caf37f
src/scanner.c
@@ -547,6 +547,7 @@ void *tree_sitter_fortran_external_scanner_create() {
547
int length = strlen(macro_id);
548
char *new_str = (char *)ts_malloc((length + 1) * sizeof(char));
549
strncpy(new_str, macro_id, length);
550
+ new_str[length] = 0;
551
array_push(macroIdsResult, new_str);
552
// Keep splitting
553
macro_id = strtok(NULL, ":");
0 commit comments