newfs_hammer(8): fix [-Wsizeof-pointer-memaccess]
authorJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 20:57:32 +0000 (21:57 +0100)
committerJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 20:57:32 +0000 (21:57 +0100)
commit959b14193d96ba91c14036a89881fcc01ee57f12
treebf2fcdb7cd3342895a077bbb89ee01d9a0008314
parentd79a4aee5c207178ca02fa706abf8ef9b61cd4a3
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.
sbin/newfs_hammer/newfs_hammer.c