aboutsummaryrefslogtreecommitdiff
path: root/src/fake86/console.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2021-02-27 12:13:50 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2021-02-27 12:13:50 -0500
commit50d83a1ff55b7b06efa86ebd344e7b0f4808b980 (patch)
tree73e5ab45283d23f2f189fe88e2bb20f0207047c3 /src/fake86/console.c
parentd49887486c772592c0e8ecc158c1cc3efb3f7709 (diff)
downloadfake86-50d83a1ff55b7b06efa86ebd344e7b0f4808b980.tar.gz
Quick and dirty fixups to make it buildableHEADmaster
Diffstat (limited to 'src/fake86/console.c')
-rwxr-xr-xsrc/fake86/console.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fake86/console.c b/src/fake86/console.c
index 03edebb..ab935d2 100755
--- a/src/fake86/console.c
+++ b/src/fake86/console.c
@@ -75,7 +75,9 @@ void waitforcmd (uint8_t *dst, uint16_t maxlen) {
SDL_Delay(10); //don't waste CPU time while in the polling loop
}
#else
- gets (dst);
+ char buf[255];
+
+ fgets (buf, dst, stdin);
#endif
}