updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / apache13 / httpd-1.3-getline.patch
blobeb96c706d772364a0e5cf142dcb01e5f9da829b0
1 diff -wbBur apache_1.3.41/src/support/htdigest.c apache_1.3.41.qwe/src/support/htdigest.c
2 --- apache_1.3.41/src/support/htdigest.c 2006-07-12 08:16:05.000000000 +0000
3 +++ apache_1.3.41.qwe/src/support/htdigest.c 2009-09-28 08:35:02.000000000 +0000
4 @@ -71,7 +71,7 @@
5 while ((line[y++] = line[x++]));
8 -static int getline(char *s, int n, FILE *f)
9 +static int xgetline(char *s, int n, FILE *f)
11 register int i = 0;
13 @@ -158,7 +158,7 @@
15 static char line[MAX_STRING_LEN];
17 - while (!(getline(line, MAX_STRING_LEN, source))) {
18 + while (!(xgetline(line, MAX_STRING_LEN, source))) {
19 putline(target, line);
22 @@ -216,7 +216,7 @@
23 ap_cpystrn(realm, argv[2], sizeof(realm));
25 found = 0;
26 - while (!(getline(line, MAX_STRING_LEN, f))) {
27 + while (!(xgetline(line, MAX_STRING_LEN, f))) {
28 if (found || (line[0] == '#') || (!line[0])) {
29 putline(tfp, line);
30 continue;
31 diff -wbBur apache_1.3.41/src/support/htpasswd.c apache_1.3.41.qwe/src/support/htpasswd.c
32 --- apache_1.3.41/src/support/htpasswd.c 2006-07-12 08:16:05.000000000 +0000
33 +++ apache_1.3.41.qwe/src/support/htpasswd.c 2009-09-28 08:32:31.000000000 +0000
34 @@ -98,7 +98,7 @@
35 * Get a line of input from the user, not including any terminating
36 * newline.
38 -static int getline(char *s, int n, FILE *f)
39 +static int xgetline(char *s, int n, FILE *f)
41 register int i = 0;
43 @@ -547,7 +547,7 @@
44 char scratch[MAX_STRING_LEN];
46 fpw = fopen(pwfilename, "r");
47 - while (! (getline(line, sizeof(line), fpw))) {
48 + while (! (xgetline(line, sizeof(line), fpw))) {
49 char *colon;
51 if ((line[0] == '#') || (line[0] == '\0')) {
52 diff -wbBur apache_1.3.41/src/support/logresolve.c apache_1.3.41.qwe/src/support/logresolve.c
53 --- apache_1.3.41/src/support/logresolve.c 2006-07-12 08:16:05.000000000 +0000
54 +++ apache_1.3.41.qwe/src/support/logresolve.c 2009-09-28 08:32:58.000000000 +0000
55 @@ -71,7 +71,7 @@
56 #endif /* !MPE && !WIN32*/
58 static void cgethost(struct in_addr ipnum, char *string, int check);
59 -static int getline(char *s, int n);
60 +static int xgetline(char *s, int n);
61 static void stats(FILE *output);
64 @@ -278,7 +278,7 @@
65 * gets a line from stdin
68 -static int getline (char *s, int n)
69 +static int xgetline (char *s, int n)
71 char *cp;
73 @@ -326,7 +326,7 @@
74 for (i = 0; i < MAX_ERR + 2; i++)
75 errors[i] = 0;
77 - while (getline(line, MAXLINE)) {
78 + while (xgetline(line, MAXLINE)) {
79 if (line[0] == '\0')
80 continue;
81 entries++;