summaryrefslogtreecommitdiff
path: root/lib/libc/md/md5c.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-04-30 05:56:07 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-04-30 05:56:07 +0000
commit0dd9870ecb1afa43b7a8e544cc5557035d6e8f93 (patch)
tree9bb1b7b7332428b7cb78644ddb5eedcc72c1503b /lib/libc/md/md5c.c
parent431efa89f66876af0562bdcf691e84d2be897f82 (diff)
Make possible truncation of long value more explicit
Diffstat (limited to 'lib/libc/md/md5c.c')
-rw-r--r--lib/libc/md/md5c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/md/md5c.c b/lib/libc/md/md5c.c
index f8ec90d6a55..672c45afffc 100644
--- a/lib/libc/md/md5c.c
+++ b/lib/libc/md/md5c.c
@@ -23,7 +23,7 @@ documentation and/or software.
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: md5c.c,v 1.8 1997/01/07 10:09:00 niklas Exp $";
+static char rcsid[] = "$OpenBSD: md5c.c,v 1.9 1997/04/30 05:56:06 tholo Exp $";
#endif /* LIBC_SCCS and not lint */
#include <string.h>
@@ -205,7 +205,7 @@ MD5_CTX *context; /* context */
/* Save number of bits */
hi = context->count >> 32;
- lo = context->count & 0xffffffff;
+ lo = (u_int32_t)context->count & 0xffffffff;
Encode (bits, &lo, 4);
Encode (bits + 4, &hi, 4);