wok view thttpd/stuff/htpassword.c.u @ rev 14546
firefox-langpack-ru: Up to 17.0.6esr
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed May 22 21:57:03 2013 +0200 (2013-05-22) |
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;