]> git.mxchange.org Git - flightgear.git/commitdiff
iax.md5: pass correct size to memset (identified by gcc)
authorThomas Geymayer <tomgey@gmail.com>
Sun, 1 Jun 2014 10:20:33 +0000 (12:20 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 1 Jun 2014 10:20:33 +0000 (12:20 +0200)
3rdparty/iaxclient/lib/libiax2/src/md5.c

index 401216ee27167b9e048cdcaa7831e65aed7bb303..b154f6c15eb934b50b7c25f812a79655e3312c33 100644 (file)
@@ -177,7 +177,7 @@ void MD5Final(uint8_t digest[16], struct MD5Context *ctx)
     MD5Transform(ctx->buf, (uint32_t *) ctx->in);
     byteReverse((uint8_t *) ctx->buf, 4);
     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 */
 }
 
 #ifndef ASM_MD5