Author: imp Date: Sun Jan 28 23:58:22 2018 New Revision: 328520 URL: https://svnweb.freebsd.org/changeset/base/328520
Log: Out of an abundance of caution, NUL out the first byte in the PNP info. Modified: head/sys/dev/ofw/ofw_bus_subr.c Modified: head/sys/dev/ofw/ofw_bus_subr.c ============================================================================== --- head/sys/dev/ofw/ofw_bus_subr.c Sun Jan 28 21:30:57 2018 (r328519) +++ head/sys/dev/ofw/ofw_bus_subr.c Sun Jan 28 23:58:22 2018 (r328520) @@ -90,6 +90,7 @@ ofw_bus_gen_child_pnpinfo_str(device_t cbdev, device_t size_t buflen) { + *buf = '\0'; if (ofw_bus_get_name(child) != NULL) { strlcat(buf, "name=", buflen); strlcat(buf, ofw_bus_get_name(child), buflen); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"