summaryrefslogtreecommitdiff
path: root/games/frotz/patches/patch-pb
blob: b74516be649edffe871a08e2a1aa585904fa0da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$NetBSD: patch-pb,v 1.1 2009/07/18 02:49:15 smb Exp $

--- src/dumb/dumb_input.c.orig	2009-07-17 22:42:30.000000000 -0400
+++ src/dumb/dumb_input.c	2009-07-17 22:42:49.000000000 -0400
@@ -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 get_line(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);
+    get_line(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);
+	  get_line(s);
 	  if (!strcmp(s, "q\n"))
 	    break;
 	}