Skip to content

Commit

Permalink
Bugfix: Return fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
mkostoevr committed Jul 22, 2021
1 parent 60ac90a commit b8d0c81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b8d0c81

Please sign in to comment.