openbsd-ports/www/thttpd/patches/patch-extras_htpasswd_c
2012-03-16 21:58:38 +00:00

22 lines
731 B
Plaintext

$OpenBSD: patch-extras_htpasswd_c,v 1.1 2012/03/16 21:58:38 sthen Exp $
--- extras/htpasswd.c.orig Fri Mar 16 21:54:04 2012
+++ extras/htpasswd.c Fri Mar 16 21:54:17 2012
@@ -49,7 +49,7 @@ static void getword(char *word, char *line, char stop)
while((line[y++] = line[x++]));
}
-static int getline(char *s, int n, FILE *f) {
+static int t_getline(char *s, int n, FILE *f) {
register int i=0;
while(1) {
@@ -189,7 +189,7 @@ int main(int argc, char *argv[]) {
strcpy(user,argv[2]);
found = 0;
- while(!(getline(line,MAX_STRING_LEN,f))) {
+ while(!(t_getline(line,MAX_STRING_LEN,f))) {
if(found || (line[0] == '#') || (!line[0])) {
putline(tfp,line);
continue;