summaryrefslogtreecommitdiff
path: root/package/mini_httpd/patches/patch-htpasswd_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/mini_httpd/patches/patch-htpasswd_c')
-rw-r--r--package/mini_httpd/patches/patch-htpasswd_c21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/mini_httpd/patches/patch-htpasswd_c b/package/mini_httpd/patches/patch-htpasswd_c
new file mode 100644
index 000000000..bfea3fc7c
--- /dev/null
+++ b/package/mini_httpd/patches/patch-htpasswd_c
@@ -0,0 +1,21 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- mini_httpd-1.19.orig/htpasswd.c 2001-12-19 01:08:10.000000000 +0100
++++ mini_httpd-1.19/htpasswd.c 2009-06-01 22:50:44.000000000 +0200
+@@ -49,7 +49,7 @@ static void getword(char *word, char *li
+ while((line[y++] = line[x++]));
+ }
+
+-static int getline(char *s, int n, FILE *f) {
++static int getline2(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(!(getline2(line,MAX_STRING_LEN,f))) {
+ if(found || (line[0] == '#') || (!line[0])) {
+ putline(tfp,line);
+ continue;