Home
last modified time | relevance | path

Searched hist:"4 f3669ea" (Results 1 – 1 of 1) sorted by relevance

/qemu/block/
H A Dvdi.c4f3669ea Fri Feb 04 20:01:16 GMT 2011 Stefan Weil <weil@mail.berlios.de> block/vdi: Fix wrong size in conditionally used memset, memcmp

Error report from cppcheck:
block/vdi.c:122: error: Using sizeof for array given as function argument returns the size of pointer.
block/vdi.c:128: error: Using sizeof for array given as function argument returns the size of pointer.

Fix both by setting the correct size.

The buggy code is only used when QEMU is build without uuid support.
The bug is not critical, so there is no urgent need to apply it to
old versions of QEMU.

Cc: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>