summaryrefslogtreecommitdiff
path: root/sysutils/cdrkit/patches/patch-ah
blob: 8634d8534c37ce40da0f57470f62135eb2cf92d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ah,v 1.1 2009/06/07 22:02:24 hasso Exp $

--- readom/io.c.orig
+++ readom/io.c
@@ -130,7 +130,7 @@ BOOL getvalue(char *s, long *lp, long mi
 		(*prt)(s, *lp, mini, maxi, dp);
 		flush();
 		line[0] = '\0';
-		if (getline(line, 80) == EOF)
+		if (get_line(line, 80) == EOF)
 			exit(EX_BAD);
 
 		linep = skipwhite(line);
@@ -178,7 +178,7 @@ again:
 	vprintf(form, args);
 	va_end(args);
 	flush();
-	if (getline(okbuf, sizeof(okbuf)) == EOF)
+	if (get_line(okbuf, sizeof(okbuf)) == EOF)
 		exit(EX_BAD);
 	if (okbuf[0] == '?') {
 		printf("Enter 'y', 'Y', 'yes' or 'YES' if you agree with the previous asked question.\n");