diff options
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 } |