Use a better idiom for finding UTC prefixed timezones
authorngie <ngie@FreeBSD.org>
Thu, 28 Apr 2016 17:57:17 +0000 (17:57 +0000)
committerngie <ngie@FreeBSD.org>
Thu, 28 Apr 2016 17:57:17 +0000 (17:57 +0000)
commit51f1c1e1eb58a7ae2dbda88b8a0be976f295cb1b
tree218d6230f3d57917c5cafdf912740d7b56f60ae7
parent3db4f9fcfef1566ee54b87cd68e0cfee126737bc
Use a better idiom for finding UTC prefixed timezones

Instead of copy-pasting the string literal for "UTC" 3 times and using
strlen, use a static char[3] buffer and sizeof(..).

MFC after: 3 days
X-MFC with: r298507
Submitted by: kib
Sponsored by: EMC / Isilon Storage Division
usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c