diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-02-27 12:13:50 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2021-02-27 12:13:50 -0500 |
commit | 50d83a1ff55b7b06efa86ebd344e7b0f4808b980 (patch) | |
tree | 73e5ab45283d23f2f189fe88e2bb20f0207047c3 /src/fake86/console.c | |
parent | d49887486c772592c0e8ecc158c1cc3efb3f7709 (diff) | |
download | fake86-50d83a1ff55b7b06efa86ebd344e7b0f4808b980.tar.gz |
Diffstat (limited to 'src/fake86/console.c')
-rwxr-xr-x | src/fake86/console.c | 4 |
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 } |