Date: Wed, 6 Sep 2017 02:04:14 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r323202 - stable/11/sys/mips/rmi Message-ID: <201709060204.v8624EVp084270@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: emaste Date: Wed Sep 6 02:04:14 2017 New Revision: 323202 URL: https://svnweb.freebsd.org/changeset/base/323202 Log: MFC r323040: xls_ehci: eliminate string literal warning Sponsored by: The FreeBSD Foundation Modified: stable/11/sys/mips/rmi/xls_ehci.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/mips/rmi/xls_ehci.c ============================================================================== --- stable/11/sys/mips/rmi/xls_ehci.c Wed Sep 6 02:03:22 2017 (r323201) +++ stable/11/sys/mips/rmi/xls_ehci.c Wed Sep 6 02:04:14 2017 (r323202) @@ -130,7 +130,7 @@ ehci_xls_attach(device_t self) device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); device_set_desc(sc->sc_bus.bdev, xlr_usb_dev_desc); - sprintf(sc->sc_vendor, xlr_vendor_desc); + strlcpy(sc->sc_vendor, xlr_vendor_desc, sizeof(sc->sc_vendor)); err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, NULL,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709060204.v8624EVp084270>