Use sizeof() instead of KI_MAXCOMLEN and KI_WMESGLEN in structs.
authormillert <millert@openbsd.org>
Tue, 22 Feb 2022 17:42:52 +0000 (17:42 +0000)
committermillert <millert@openbsd.org>
Tue, 22 Feb 2022 17:42:52 +0000 (17:42 +0000)
commite9b1e889bf9adde1a0ad10d8087a775b132d0d26
treee54a0e45188dadd309aebba164bb89388a873b10
parent4ec73a122782516ae2bc361388b0dd1a22baff3a
Use sizeof() instead of KI_MAXCOMLEN and KI_WMESGLEN in structs.
This way we keep the size of the strings in the private struct in
sync with what the kernel gives us.  OK deraadt@
bin/ps/keyword.c
usr.sbin/sa/extern.h