]> granicus.if.org Git - apache/commitdiff
Avoid a compiler error on NetWare
authorBradley Nicholes <bnicholes@apache.org>
Tue, 10 Sep 2002 22:32:46 +0000 (22:32 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 10 Sep 2002 22:32:46 +0000 (22:32 +0000)
Submitted by: Jean-Jacques Clar (jjclar@novell.com)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96753 13f79535-47bb-0310-9956-ffa450edef68

support/htpasswd.c

index 4a847bb2fa02fa190853b3487e0414324d820f42..4dfa3145025e1405aff7afc40a473bd9e2f39f76 100644 (file)
@@ -215,7 +215,7 @@ static int mkrecord(char *user, char *record, apr_size_t rlen, char *passwd,
         int i;
 
         /* Take the MD5 hash of the string argument.  */
-        apr_md5(hash, pw, strlen(pw));
+        apr_md5(hash, (const unsigned char*)pw, strlen(pw));
 
         for (i = 0, r = cpw; i < MD5_DIGESTSIZE; i++) {
             *r++ = hex[hash[i] >> 4];