From 452dc08dca691448d089b6fe02df9402b03acc29 Mon Sep 17 00:00:00 2001 From: emaste Date: Wed, 30 Aug 2017 22:58:11 +0000 Subject: [PATCH] xls_ehci: eliminate 'format string is not a string literal' warning Reported by: Clang MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/mips/rmi/xls_ehci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/mips/rmi/xls_ehci.c b/sys/mips/rmi/xls_ehci.c index 4451d13d7f87..00183f7a14dc 100644 --- a/sys/mips/rmi/xls_ehci.c +++ b/sys/mips/rmi/xls_ehci.c @@ -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,