Userspace doesn't need to use SUN_LEN(): connect() and bind() must accept
authorguenther <guenther@openbsd.org>
Sun, 11 Oct 2015 20:23:49 +0000 (20:23 +0000)
committerguenther <guenther@openbsd.org>
Sun, 11 Oct 2015 20:23:49 +0000 (20:23 +0000)
commite9bd15038d03da9cf122f415eea0029eda0acc88
treebd11aa13c278d8f69b5f845740bfccbf754330d8
parent3c67c8fadd3f740fd13d3cf3ebc87f084a6e2ccd
Userspace doesn't need to use SUN_LEN(): connect() and bind() must accept
sizeof(struct sockaddr_un), so do the simple, portable thing.
Also convert some strncpy() to strlcpy()

ok deraadt@
usr.sbin/apm/apm.c
usr.sbin/apmd/apmd.c
usr.sbin/lpr/common_source/startdaemon.c
usr.sbin/lpr/lpd/lpd.c
usr.sbin/syslogd/syslogd.c