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

librsvg: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 29 22:48:43 2012 +0200 (2012-05-29)
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;