Skip to content
  • Stefan Weil's avatar
    block/vdi: Fix wrong size in conditionally used memset, memcmp · 4f3669ea
    Stefan Weil authored
    
    
    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: default avatarStefan Weil <weil@mail.berlios.de>
    Signed-off-by: default avatarKevin Wolf <kwolf@redhat.com>
    4f3669ea