summaryrefslogtreecommitdiff
path: root/package/libvirt/patches/patch-src_storage_backend_c
blob: d47a4493d90aa57f49f91452d96e72d6f064e142 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- libvirt-0.7.0.orig/src/storage_backend.c	2009-08-05 14:50:01.000000000 +0200
+++ libvirt-0.7.0/src/storage_backend.c	2009-09-11 13:23:38.000000000 +0200
@@ -128,7 +128,7 @@ virStorageBackendCopyToFD(virConnectPtr 
         }
     }
 
-    bzero(&zerobuf, sizeof(zerobuf));
+    memset(&zerobuf, 0, sizeof(zerobuf));
 
     if (VIR_ALLOC_N(buf, bytes) < 0) {
         virReportOOMError(conn);