Created
January 16, 2013 08:33
-
-
Save storborg/4545555 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- src/dumb/dumb_input.c.orig 2002-10-26 20:44:10.000000000 -0500 | |
| +++ src/dumb/dumb_input.c 2012-07-26 07:27:34.000000000 -0500 | |
| @@ -79,7 +79,7 @@ | |
| /* Read one line, including the newline, into s. Safely avoids buffer | |
| * overruns (but that's kind of pointless because there are several | |
| * other places where I'm not so careful). */ | |
| -static void getline(char *s) | |
| +static void frotz_getline(char *s) | |
| { | |
| int c; | |
| char *p = s; | |
| @@ -203,7 +203,7 @@ | |
| fputs(prompt, stdout); | |
| else | |
| dumb_show_prompt(show_cursor, (timeout ? "tTD" : ")>}")[type]); | |
| - getline(s); | |
| + frotz_getline(s); | |
| if ((s[0] != '\\') || ((s[1] != '\0') && !islower(s[1]))) { | |
| /* Is not a command line. */ | |
| translate_special_chars(s); | |
| @@ -265,7 +265,7 @@ | |
| if (!*current_page) | |
| break; | |
| printf("HELP: Type <return> for more, or q <return> to stop: "); | |
| - getline(s); | |
| + frotz_getline(s); | |
| if (!strcmp(s, "q\n")) | |
| break; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment