[quake3-commits] r2281 - trunk/code/qcommon

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Tue Jun 19 10:53:40 EDT 2012


Author: ztm
Date: 2012-06-19 10:53:40 -0400 (Tue, 19 Jun 2012)
New Revision: 2281

Modified:
   trunk/code/qcommon/md5.c
Log:
fix a WRONG size argument to a memset() call found by Clang/LLVM

>From /dev/humancontroller.

Modified: trunk/code/qcommon/md5.c
===================================================================
--- trunk/code/qcommon/md5.c	2012-06-19 14:52:22 UTC (rev 2280)
+++ trunk/code/qcommon/md5.c	2012-06-19 14:53:40 UTC (rev 2281)
@@ -253,7 +253,7 @@
     
     if (digest!=NULL)
 	    memcpy(digest, ctx->buf, 16);
-    memset(ctx, 0, sizeof(ctx));	/* In case it's sensitive */
+    memset(ctx, 0, sizeof(*ctx));	/* In case it's sensitive */
 }
 
 



More information about the quake3-commits mailing list