patch-htpasswd_c 733 B

123456789101112131415161718192021
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- mini_httpd-1.19.orig/htpasswd.c 2001-12-19 01:08:10.000000000 +0100
  3. +++ mini_httpd-1.19/htpasswd.c 2009-06-01 22:50:44.000000000 +0200
  4. @@ -49,7 +49,7 @@ static void getword(char *word, char *li
  5. while((line[y++] = line[x++]));
  6. }
  7. -static int getline(char *s, int n, FILE *f) {
  8. +static int getline2(char *s, int n, FILE *f) {
  9. register int i=0;
  10. while(1) {
  11. @@ -189,7 +189,7 @@ int main(int argc, char *argv[]) {
  12. strcpy(user,argv[2]);
  13. found = 0;
  14. - while(!(getline(line,MAX_STRING_LEN,f))) {
  15. + while(!(getline2(line,MAX_STRING_LEN,f))) {
  16. if(found || (line[0] == '#') || (!line[0])) {
  17. putline(tfp,line);
  18. continue;