ref: 60bf4e5d8366b38f40e310180c42550d1825d450
parent: b73d39323bf98cf2a69294815cc020d02555391c
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Nov 27 16:04:07 EST 2017
[as] Fix format dump in myro files
--- a/as/myro.c
+++ b/as/myro.c
@@ -8,6 +8,8 @@
#include "../inc/myro.h"
#include "as.h"
+#define FORMAT "z80-scc"
+
static Reloc *relocs;
static size_t relcap, relsiz;
@@ -20,8 +22,8 @@
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;