aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/thttpd/files/htpasswd_getline.diff
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/thttpd/files/htpasswd_getline.diff')
-rw-r--r--recipes/thttpd/files/htpasswd_getline.diff20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/thttpd/files/htpasswd_getline.diff b/recipes/thttpd/files/htpasswd_getline.diff
new file mode 100644
index 0000000000..82b12e28cb
--- /dev/null
+++ b/recipes/thttpd/files/htpasswd_getline.diff
@@ -0,0 +1,20 @@
+--- thttpd-2.25b/extras/htpasswd.c.old 2010-04-28 17:23:40.000000000 +0100
++++ thttpd-2.25b/extras/htpasswd.c 2010-04-28 17:24:00.000000000 +0100
+@@ -49,7 +49,7 @@
+ while((line[y++] = line[x++]));
+ }
+
+-static int getline(char *s, int n, FILE *f) {
++static int ht_getline(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(!(ht_getline(line,MAX_STRING_LEN,f))) {
+ if(found || (line[0] == '#') || (!line[0])) {
+ putline(tfp,line);
+ continue;