uxn

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

commit 0c9e67b9bed094d660ae1ad17b9b6bb4fa0592b0
parent 51d43a6989b669160ce20771c44deb0ffae2b5aa
Author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
Date:   Mon, 17 Jul 2023 00:52:52 +0200

uxncli: stop on EOF as there is nothing left to run (besides endless loop)

Diffstat:
Msrc/uxncli.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/uxncli.c b/src/uxncli.c @@ -61,7 +61,8 @@ main(int argc, char **argv) } while(!u.dev[0x0f]) { int c = fgetc(stdin); - if(c != EOF) console_input(&u, (Uint8)c, CONSOLE_STD); + if(c == EOF) break; + console_input(&u, (Uint8)c, CONSOLE_STD); } } free(u.ram);