coar 99/04/08 14:34:01
Modified: src/ap ap_md5c.c
Log:
D'oh! Sometimes signedness is good..
Revision Changes Path
1.26 +3 -2 apache-1.3/src/ap/ap_md5c.c
Index: ap_md5c.c
===================================================================
RCS file: /home/cvs/apache-1.3/src/ap/ap_md5c.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- ap_md5c.c 1999/04/08 20:56:38 1.25
+++ ap_md5c.c 1999/04/08 21:34:00 1.26
@@ -448,7 +448,8 @@
const unsigned char *sp, *ep;
unsigned char final[16];
int i;
- unsigned int sl, pl;
+ unsigned int sl;
+ int pl;
unsigned int pwlen;
AP_MD5_CTX ctx, ctx1;
unsigned long l;
@@ -509,7 +510,7 @@
ap_MD5Update(&ctx1, pw, pwlen);
ap_MD5Final(final, &ctx1);
for(pl = pwlen; pl > 0; pl -= 16) {
- ap_MD5Update(&ctx, final, (pl > 16) ? 16 : pl);
+ ap_MD5Update(&ctx, final, (pl > 16) ? 16 : (unsigned int) pl);
}
/*