wok view thttpd/stuff/htpassword.c.u @ rev 20701

updated airgeddon (3.31 -> 8.12)
author Hans-G?nter Theisgen
date Tue Feb 05 17:16:21 2019 +0100 (2019-02-05)
parents
children
line source
1 --- thttpd-2.25b-ori/extras/htpasswd.c Wed Dec 19 01:08:08 2001
2 +++ thttpd-2.25b/extras/htpasswd.c Sun Feb 28 23:02:36 2010
3 @@ -49,7 +49,7 @@
4 while((line[y++] = line[x++]));
5 }
7 -static int getline(char *s, int n, FILE *f) {
8 +static int xgetline(char *s, int n, FILE *f) {
9 register int i=0;
11 while(1) {
12 @@ -189,7 +189,7 @@
13 strcpy(user,argv[2]);
15 found = 0;
16 - while(!(getline(line,MAX_STRING_LEN,f))) {
17 + while(!(xgetline(line,MAX_STRING_LEN,f))) {
18 if(found || (line[0] == '#') || (!line[0])) {
19 putline(tfp,line);
20 continue;