blob: 7a1713e7bb73e2738f26a662e237e501e366647e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- libvirt-0.8.7.orig/src/storage/storage_backend.c 2010-12-22 09:54:05.000000000 +0100
+++ libvirt-0.8.7/src/storage/storage_backend.c 2011-01-12 18:30:49.000000000 +0100
@@ -131,7 +131,7 @@ virStorageBackendCopyToFD(virStorageVolD
goto cleanup;
}
- bzero(&zerobuf, sizeof(zerobuf));
+ memset(&zerobuf, 0, sizeof(zerobuf));
if (VIR_ALLOC_N(buf, bytes) < 0) {
ret = -errno;
|