commit 9722f089637b867b9f57f04a57c5c592ecc68375
parent e59a808bcb0b716a1dc48e81adadbf7633fa6c83
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 27 Nov 2017 21:04:07 +0100
[as] Fix format dump in myro files
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/as/myro.c b/as/myro.c
@@ -8,6 +8,8 @@ static char sccsid[] = "@(#) ./as/myro.c";
#include "../inc/myro.h"
#include "as.h"
+#define FORMAT "z80-scc"
+
static Reloc *relocs;
static size_t relcap, relsiz;
@@ -20,8 +22,8 @@ writestrings(FILE *fp)
Section *sp;
String str;
- fputs("z80-scc", fp);
- off = 7;
+ fwrite(FORMAT, sizeof(FORMAT), 1, fp);
+ off = sizeof(FORMAT);
for (sym = symlist; sym; sym = sym->next) {
str = sym->name;