uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit 7fc1b0887fc608c9496743ad762cd409636fbef1
parent 9f1df5f9440a105c4c99ca4bd2c6e4577f8fcdd1
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Sun, 25 Feb 2024 17:37:03 -0800

(uxnasm) Fixed crashing but on no-output

Diffstat:
Msrc/uxnasm.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/uxnasm.c b/src/uxnasm.c @@ -520,9 +520,7 @@ main(int argc, char *argv[]) return !error("Invalid input", argv[1]); if(!assemble(src)) return !error("Assembly", "Failed to assemble rom."); - if(scmp(argv[2], "-", 2)) - dst = stdout; - else if(!(dst = fopen(argv[2], "wb"))) + if(!(dst = fopen(argv[2], "wb"))) return !error("Invalid Output", argv[2]); if(p.length <= TRIM) return !error("Assembly", "Output rom is empty.");