summaryrefslogtreecommitdiff
path: root/ftp/bsdftpd-ssl/files/patch-ftpd_ftpcmd.y
blob: 020eaada2dee87598049fbacb710aca89268947a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- ftpd/ftpcmd.y.orig	2004-12-19 18:44:42 UTC
+++ ftpd/ftpcmd.y
@@ -1394,7 +1394,7 @@ lookup(struct tab *p, char *cmd)
  * getline - a hacked up version of fgets to ignore TELNET escape codes.
  */
 char *
-getline(char *s, int n, FILE *iop)
+get_line(char *s, int n, FILE *iop)
 {
 	int c;
 	register char *cs;
@@ -1545,7 +1545,7 @@ yylex(void)
 		case CMD:
 			(void) signal(SIGALRM, toolong);
 			(void) alarm(timeout);
-			if (getline(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
+			if (get_line(cbuf, sizeof(cbuf)-1, stdin) == NULL) {
 				reply(221, "You could at least say goodbye.");
 				dologout(0);
 			}