mcc
mcc is a machine code compiler.
Log | Files | << Repositories
tree e05694fff0f128497376cda60a6316de6dd73196 parent bd9f79154f2f79120200db333dbc70122eb192f0 author esote <esote.net@gmail.com> 1558044319 -0500 committer esote <esote.net@gmail.com> 1558044319 -0500 gpgsig -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTXAxYDuIzimYoNSPuhTmRAjzzC8gUCXSArEQAKCRChTmRAjzzC 8q6NAP0eChV7zr3Fd2akGxLTfM1xgpk4bT7EchgeNTwwQqFIrQD/cvjKH3gCzVMf 5To3XC08UCgUGZ4x5yLeCxd38G1Y0g4= =WvKa -----END PGP SIGNATURE----- use NULL_LEN when writing strtab
mcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mcc.c b/mcc.c index f325571..d394d4b 100644 --- a/mcc.c +++ b/mcc.c @@ -326,7 +326,7 @@ write_section_names(FILE *const out) static char const *const bss = ".bss"; /* null section name */ - if (fwrite(&zero, 1, 1, out) != 1) { + if (fwrite(&zero, NULL_LEN, 1, out) != 1) { err(1, "write null name"); }