[asterisk-commits] kmoore: branch 1.8 r368719 - /branches/1.8/main/md5.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 11 09:10:17 CDT 2012


Author: kmoore
Date: Mon Jun 11 09:10:13 2012
New Revision: 368719

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=368719
Log:
Fix compilation in dev-mode

Backport a compilation fix in md5.c from trunk that only showed up in
dev-mode under certain compiler versions.

Modified:
    branches/1.8/main/md5.c

Modified: branches/1.8/main/md5.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/md5.c?view=diff&rev=368719&r1=368718&r2=368719
==============================================================================
--- branches/1.8/main/md5.c (original)
+++ branches/1.8/main/md5.c Mon Jun 11 09:10:13 2012
@@ -123,6 +123,7 @@
 {
 	unsigned count;
 	unsigned char *p;
+	uint32_t *in_buf;
 
 	/* Compute number of bytes mod 64 */
 	count = (ctx->bits[0] >> 3) & 0x3F;
@@ -151,8 +152,9 @@
 	byteReverse(ctx->in, 14);
 
 	/* Append length in bits and transform */
-	((uint32_t *) ctx->in)[14] = ctx->bits[0];
-	((uint32_t *) ctx->in)[15] = ctx->bits[1];
+	in_buf = (uint32_t *) ctx->in;
+	in_buf[14] = ctx->bits[0];
+	in_buf[15] = ctx->bits[1];
 
 	MD5Transform(ctx->buf, (uint32_t *) ctx->in);
 	byteReverse((unsigned char *) ctx->buf, 4);




More information about the asterisk-commits mailing list