git: newfs_hammer(8): fix [-Wsizeof-pointer-memaccess]

John Marino marino at
Tue Feb 10 13:01:06 PST 2015

commit 959b14193d96ba91c14036a89881fcc01ee57f12
Author: John Marino <draco at>
Date:   Tue Feb 10 21:57:32 2015 +0100

    newfs_hammer(8): fix [-Wsizeof-pointer-memaccess]
    The device type comparison only worked by accident on x86-64 and not
    reliability on i386 because the sizeof function returned the size of
    the address rather than the size of the vol->type string.  Fix by
    specifying the size of "DEVICE" to strncmp instead.

Summary of changes:
 sbin/newfs_hammer/newfs_hammer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list