From f4f89e8e48dcc39267d40c37405b6d6fd0e33fb7 Mon Sep 17 00:00:00 2001 From: Ain <41307858+nero@users.noreply.github.com> Date: Mon, 13 Jan 2020 00:50:43 +0100 Subject: [PATCH] Fix broken argument handling --- HOST/em8080.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/HOST/em8080.c b/HOST/em8080.c index 15cff6f..54446c6 100644 --- a/HOST/em8080.c +++ b/HOST/em8080.c @@ -113,7 +113,9 @@ int main(int argc, char** argv) { argc--; if (!argc) { fprintf(stderr, "No filename given\n"); + return 255; } + argv++; i8080 cpu; i8080_init(&cpu);