randy       99/08/08 11:18:13

  Modified:    src/ap   ap_checkpass.c
  Log:
  Fix a warning in Win32.
  
  Revision  Changes    Path
  1.3       +2 -3      apache-1.3/src/ap/ap_checkpass.c
  
  Index: ap_checkpass.c
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/ap/ap_checkpass.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ap_checkpass.c    1999/08/08 17:57:29     1.2
  +++ ap_checkpass.c    1999/08/08 18:18:12     1.3
  @@ -78,8 +78,8 @@
   API_EXPORT(char *) ap_validate_password(const char *passwd, const char *hash)
   {
       char sample[120];
  -    char *crypt_pw;
   
  +
       /* FreeBSD style MD5 string 
        */
       if (!strncmp(hash, apr1_id, strlen(apr1_id))) {
  @@ -104,8 +104,7 @@
         */
        ap_cpystrn(sample, passwd, sizeof(sample) - 1);
   #else
  -     crypt_pw = crypt(passwd, hash);
  -     ap_cpystrn(sample, crypt_pw, sizeof(sample) - 1);
  +     ap_cpystrn(sample, (char *)crypt(passwd, hash), sizeof(sample) - 1);
   #endif
       }
       return (strcmp(sample, hash) == 0) ? NULL : "password mismatch";
  
  
  

Reply via email to