34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
--- xen-4.1.2/tools/libxc/xc_dom_boot.c.orig 2013-05-29 17:56:31.336771949 +0200
|
|
+++ xen-4.1.2/tools/libxc/xc_dom_boot.c 2013-05-29 17:54:38.353087947 +0200
|
|
@@ -265,7 +265,7 @@
|
|
return rc;
|
|
|
|
/* let the vm run */
|
|
- memset(ctxt, 0, sizeof(ctxt));
|
|
+ memset(ctxt, 0, sizeof(*ctxt));
|
|
if ( (rc = dom->arch_hooks->vcpu(dom, ctxt)) != 0 )
|
|
return rc;
|
|
xc_dom_unmap_all(dom);
|
|
--- xen-4.1.2/tools/blktap2/drivers/md5.c.orig 2013-05-29 18:12:16.545606480 +0200
|
|
+++ xen-4.1.2/tools/blktap2/drivers/md5.c 2013-05-29 18:11:29.410164715 +0200
|
|
@@ -174,7 +174,7 @@
|
|
MD5Transform(ctx->buf, (uint32_t *) ctx->in);
|
|
byteReverse((unsigned char *) 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 */
|
|
}
|
|
|
|
/* The four core functions - F1 is optimized somewhat */
|
|
--- xen-4.1.2/tools/xenstat/libxenstat/src/xenstat_linux.c.orig 2013-05-29 18:13:04.107043178 +0200
|
|
+++ xen-4.1.2/tools/xenstat/libxenstat/src/xenstat_linux.c 2013-05-29 18:07:34.835942468 +0200
|
|
@@ -113,7 +113,7 @@
|
|
|
|
/* Initialize all variables called has passed as non-NULL to zeros */
|
|
if (iface != NULL)
|
|
- memset(iface, 0, sizeof(iface));
|
|
+ memset(iface, 0, sizeof(*iface));
|
|
if (rxBytes != NULL)
|
|
*rxBytes = 0;
|
|
if (rxPackets != NULL)
|