opiekey (contrib): Fix serious (?) [-Wsizeof-pointer-memaccess]
authorJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 21:38:44 +0000 (22:38 +0100)
committerJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 21:38:44 +0000 (22:38 +0100)
commit5f1ce051ad92f90610afb9534cd26ba1ab6b7086
tree6d38ebf01f8b95013f69ff837b39492d5add4daa
parent474846ab568a6dafdbf34b0d7527073de6d757b3
opiekey (contrib): Fix serious (?) [-Wsizeof-pointer-memaccess]

On a password verification function of opiekey, the amount of bytes
allocated to a secret was 4 bytes of i386 and 8 bytes of x86-64.  Memset
was using the size of the pointer to allocate memory.

Change 3 instances of this to size OPIE_SECRET_MAX + 1 to fix it.
FYI this vendor branch is like 16 years old...
contrib/opie/opiekey.c