svn commit: r323202 - stable/11/sys/mips/rmi

Ed Maste emaste at FreeBSD.org
Wed Sep 6 02:04:16 UTC 2017


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,


More information about the svn-src-all mailing list