From: Robert Pengelly Date: Thu, 13 Nov 2025 17:04:21 +0000 (+0000) Subject: Bug fix X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;p=sasm.git Bug fix --- diff --git a/coff.c b/coff.c index 8a76a8b..29ffd0d 100644 --- a/coff.c +++ b/coff.c @@ -353,7 +353,7 @@ void output_coff (FILE *outfile) { memset (sym_tbl_ent.Name, 0, 4); write_to_byte_array ((unsigned char *) sym_tbl_ent.Name + 4, string_table_size, 4); - string_table_size += strlen (symbol->name) + 1; + string_table_size += name_length + 1; symbol->write_name_to_string_table = 1;