Skip to content

Commit 665a982

Browse files
author
H. Peter Anvin
committed
Merge remote-tracking branch 'vszakats/outcoff-file-repro'
2 parents 8fcc785 + e1423b0 commit 665a982

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

output/outcoff.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,10 @@ static void coff_write_symbols(void)
12751275
* The `.file' record, and the file name auxiliary record.
12761276
*/
12771277
coff_symbol(".file", 0L, 0L, -2, 0, 0x67, 1);
1278-
strncpy(filename, inname, 18);
1278+
if (reproducible)
1279+
memset(filename, 0, 18);
1280+
else
1281+
strncpy(filename, inname, 18);
12791282
nasm_write(filename, 18, ofile);
12801283

12811284
/*

0 commit comments

Comments
 (0)