From 39af6ec292abcb48894c74077a1b00f09e55f5ff Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Fri, 3 May 2024 14:06:56 +0100 Subject: [PATCH] ASM: Fixed length checking bug in assembler labels --- assembly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assembly.c b/assembly.c index 0f237eb..5f81751 100644 --- a/assembly.c +++ b/assembly.c @@ -356,7 +356,7 @@ struct imm_ret_t *parse_immediate(char* str,struct assembler_context_t *assemble struct label_ll_t *search=assembler_context->label_ll; while(search){ - if(strncmp(str,search->name,len)==0){ + if(strncmp(str,search->name,len)==0&&search->name[len]==0){ if(select==1) imm_ret->value=search->address>>16; else if(select==2)