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

Add aurorials-theme and madeirado-theme (Art by Leonardo Laporte, theme switchers mine)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Feb 12 15:51:10 2016 +0200 (2016-02-12)
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;