diff --git a/src/uxnasm.c b/src/uxnasm.c index f5b5894..f25d6ce 100644 --- a/src/uxnasm.c +++ b/src/uxnasm.c @@ -456,7 +456,7 @@ build(char *rompath) labels_len, macro_len); /* sym */ - if(!(dstsym = fopen(sympath, "w"))) + if(!(dstsym = fopen(sympath, "wb"))) return !error_top("Symbols file invalid", sympath); for(i = 0; i < labels_len; i++) { Uint8 hb = labels[i].addr >> 8, lb = labels[i].addr;