From b8d0c8154f15478f34027ab959277ddf2c706354 Mon Sep 17 00:00:00 2001 From: mkostoevr Date: Thu, 22 Jul 2021 22:30:11 +0300 Subject: [PATCH] Bugfix: Return fix return --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 478ee8e..53ac412 100644 --- a/main.c +++ b/main.c @@ -417,7 +417,7 @@ static void build(ObjectIr *ir) { sym.sym.symbol.Value += section_offset; if (strlen(sym.name) <= 8) { - strcpy(sym.sym.symbol.ShortName, sym.name, 8); + memcpy(sym.sym.symbol.ShortName, sym.name, 8); } else { sym.sym.symbol.Zeroes = 0; sym.sym.symbol.Offset = strtab_add(&strtab, name);