updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / thttpd / thttpd-2.25b-getline.patch
blob1ec3946b10d91fa19ce366ffac49ae6a17c9bf12
1 diff -Nur thttpd-2.25b.orig/extras/htpasswd.c thttpd-2.25b/extras/htpasswd.c
2 --- thttpd-2.25b.orig/extras/htpasswd.c 2001-12-19 02:08:08.000000000 +0200
3 +++ thttpd-2.25b/extras/htpasswd.c 2010-04-11 14:43:31.037809054 +0300
4 @@ -49,7 +49,7 @@
5 while((line[y++] = line[x++]));
8 -static int getline(char *s, int n, FILE *f) {
9 +static int get_line(char *s, int n, FILE *f) {
10 register int i=0;
12 while(1) {
13 @@ -189,7 +189,7 @@
14 strcpy(user,argv[2]);
16 found = 0;
17 - while(!(getline(line,MAX_STRING_LEN,f))) {
18 + while(!(get_line(line,MAX_STRING_LEN,f))) {
19 if(found || (line[0] == '#') || (!line[0])) {
20 putline(tfp,line);
21 continue;