]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r311378:
authorngie <ngie@FreeBSD.org>
Fri, 13 Jan 2017 09:04:26 +0000 (09:04 +0000)
committerngie <ngie@FreeBSD.org>
Fri, 13 Jan 2017 09:04:26 +0000 (09:04 +0000)
commit0d1d9b78d55a52a685b8c7789982a01450ecf8e3
tree975118d083ad109f72d8f6dcd9ee60959b387be1
parentcdcf1ebcedb7b9494e2ff7c56e80a3e806ba43d6
MFC r311378:

lm_load: fix string copying issues

- Ensure `section` doesn't overrun section by using strlcpy instead of
  strcpy [*].
- Use strdup instead of malloc + strcpy (this wasn't flagged by Coverity,
  but is an opportunistic change).

CID: 1006826 [*]
contrib/bsnmp/snmpd/main.c