From 5eebd0ceb1519a9b316734eca827fbbf7f70699c Mon Sep 17 00:00:00 2001 From: David Griffith Date: Mon, 9 Jan 2012 23:14:58 -0800 Subject: [PATCH] Stupid problem in dumb_input.c --- src/dumb/dumb_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dumb/dumb_input.c b/src/dumb/dumb_input.c index 9b16fbb..5f83f49 100644 --- a/src/dumb/dumb_input.c +++ b/src/dumb/dumb_input.c @@ -79,7 +79,7 @@ static int xgetchar(void) /* 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 dumb_getline(char *s) { int c; char *p = s; @@ -203,7 +203,7 @@ static bool dumb_read_line(char *s, char *prompt, bool show_cursor, fputs(prompt, stdout); else dumb_show_prompt(show_cursor, (timeout ? "tTD" : ")>}")[type]); - getline(s); + dumb_getline(s); if ((s[0] != '\\') || ((s[1] != '\0') && !islower(s[1]))) { /* Is not a command line. */ translate_special_chars(s); @@ -265,7 +265,7 @@ static bool dumb_read_line(char *s, char *prompt, bool show_cursor, if (!*current_page) break; printf("HELP: Type for more, or q to stop: "); - getline(s); + dumb_getline(s); if (!strcmp(s, "q\n")) break; } -- 2.34.1