Skip to content

Commit de4bd50

Browse files
author
Noam Preil
committed
Don't expand macros that match partial words
1 parent 4a9adbd commit de4bd50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

assembler/assembler.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,11 @@ int try_expand_macro(struct assembler_state *state, char **line) {
218218
free_flat_list(userparams);
219219
continue;
220220
}
221+
if (match[name_length] && isalpha(match[name_length])) {
222+
scas_log(L_DEBUG, "Not whole word, skipping");
223+
free_flat_list(userparams);
224+
continue;
225+
}
221226
endmatch = match + name_length;
222227
}
223228

0 commit comments

Comments
 (0)