1--- src/fetch.c.orig	2007-08-06 00:33:23.000000000 -0400
2+++ src/fetch.c	2010-02-23 15:05:50.000000000 -0500
3@@ -199,7 +199,7 @@
4 		fprintf(ttyout, "%s\n", user);
5 	} else {
6 		(void)fflush(ttyout);
7-		if (getline(stdin, user, sizeof(user), &errormsg) < 0) {
8+		if (get_line(stdin, user, sizeof(user), &errormsg) < 0) {
9 			warnx("%s; can't authenticate", errormsg);
10 			goto cleanup_auth_url;
11 		}
12@@ -839,7 +839,7 @@
13 		}
14 
15 				/* Read the response */
16-		len = getline(fin, buf, sizeof(buf), &errormsg);
17+		len = get_line(fin, buf, sizeof(buf), &errormsg);
18 		if (len < 0) {
19 			if (*errormsg == '\n')
20 				errormsg++;
21@@ -863,7 +863,7 @@
22 
23 				/* Read the rest of the header. */
24 		while (1) {
25-			len = getline(fin, buf, sizeof(buf), &errormsg);
26+			len = get_line(fin, buf, sizeof(buf), &errormsg);
27 			if (len < 0) {
28 				if (*errormsg == '\n')
29 					errormsg++;
30@@ -1067,7 +1067,7 @@
31 
32 				fprintf(ttyout,
33 				    "Authorization failed. Retry (y/n)? ");
34-				if (getline(stdin, reply, sizeof(reply), NULL)
35+				if (get_line(stdin, reply, sizeof(reply), NULL)
36 				    < 0) {
37 					goto cleanup_fetch_url;
38 				}
39