diff options
| author | Thomas Gellekum <tg@FreeBSD.org> | 1997-10-29 09:07:09 +0000 |
|---|---|---|
| committer | Thomas Gellekum <tg@FreeBSD.org> | 1997-10-29 09:07:09 +0000 |
| commit | d88cedc838256c93e2f02a1ce7435d826425bcdf (patch) | |
| tree | aa6480ca793198e69035277c0dfc7b1b4b6cab2f /emulators/atari800/files/patch-ae | |
| parent | 4ba37079d07fdd7aa0e48acceb83ee73fa8cb3b0 (diff) | |
Import atari800 port. This is an emulator of the old 8bit computer.
PR: 3411
Submitted by: Joel Sutton <sutton@aardvark.apana.org.au>
Diffstat (limited to 'emulators/atari800/files/patch-ae')
| -rw-r--r-- | emulators/atari800/files/patch-ae | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/emulators/atari800/files/patch-ae b/emulators/atari800/files/patch-ae new file mode 100644 index 000000000000..fd52e55c419b --- /dev/null +++ b/emulators/atari800/files/patch-ae @@ -0,0 +1,59 @@ +*** monitor.c.orig Tue Apr 22 20:58:59 1997 +--- monitor.c Tue Apr 22 21:13:57 1997 +*************** +*** 1,3 **** +--- 1,8 ---- ++ /* ++ Patched by Joel Sutton 22nd April, 1997 ++ Replaced gets with fgets. Added a newline chop feature. ++ */ ++ + #include <stdio.h> + #include <ctype.h> + #include <unistd.h> +*************** +*** 95,106 **** + + printf ("> "); + fflush(stdout); +! if (gets (s) == NULL) + { + printf("\n> CONT\n"); + strcpy(s, "CONT"); + } + + for (p=0;s[p]!=0;p++) + if (islower(s[p])) + s[p] = toupper(s[p]); +--- 100,113 ---- + + printf ("> "); + fflush(stdout); +! if (fgets (s,256,stdin) == NULL) + { + printf("\n> CONT\n"); + strcpy(s, "CONT"); + } + ++ s[strlen(s)-1]='\0'; /* fgets provision */ ++ + for (p=0;s[p]!=0;p++) + if (islower(s[p])) + s[p] = toupper(s[p]); +*************** +*** 186,192 **** + char gash[4]; + + printf ("Press return to continue: "); +! gets (gash); + nlines = 0; + } + } +--- 193,199 ---- + char gash[4]; + + printf ("Press return to continue: "); +! fgets (gash,256,stdin); + nlines = 0; + } + } |
