Fix -Wsizeof-pointer-memaccess better.
authorSascha Wildner <saw@online.de>
Fri, 23 Mar 2018 09:19:01 +0000 (10:19 +0100)
committerSascha Wildner <saw@online.de>
Sun, 1 Apr 2018 11:25:10 +0000 (13:25 +0200)
commit6f2950e09572b9cf2567a43570b1b42e90117d8c
treea4742fc4a1552e86782eaad798bcdb877194f979
parent5bde0640d48b8c2303a5609ab69ea1319574a062
Fix -Wsizeof-pointer-memaccess better.

My previous commits:

56267d362d5769c8df07bf26d5e322610e0d24b4
562a180a58780b719830629307e6283c30c85229

caused out of bounds write by one byte. This commit fixes the
warning and restores the code what was there before.
contrib/opie/libopie/insecure.c
libexec/comsat/comsat.c
usr.bin/who/utmpentry.c