blob: 082b0ed5806227c05ca3940791b17c79e7ea30a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
diff -ur mini_httpd-1.19.orig/htpasswd.c mini_httpd-1.19/htpasswd.c
--- mini_httpd-1.19.orig/htpasswd.c 2001-12-19 02:08:10.000000000 +0200
+++ mini_httpd-1.19/htpasswd.c 2009-08-09 01:20:36.000000000 +0300
@@ -49,7 +49,7 @@
while((line[y++] = line[x++]));
}
-static int getline(char *s, int n, FILE *f) {
+static int get_line(char *s, int n, FILE *f) {
register int i=0;
while(1) {
@@ -189,7 +189,7 @@
strcpy(user,argv[2]);
found = 0;
- while(!(getline(line,MAX_STRING_LEN,f))) {
+ while(!(get_line(line,MAX_STRING_LEN,f))) {
if(found || (line[0] == '#') || (!line[0])) {
putline(tfp,line);
continue;
|