From e34f611be3d3162228efe5bcd95b99c2bb4e7da2 Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Mon, 30 Jul 2012 12:09:13 +0000 Subject: [PATCH] rtl8169: resolve Coverity warnings --- drivers/rtl8169/rtl8169.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtl8169/rtl8169.c b/drivers/rtl8169/rtl8169.c index 5ef8ae419..6a3490205 100644 --- a/drivers/rtl8169/rtl8169.c +++ b/drivers/rtl8169/rtl8169.c @@ -598,7 +598,7 @@ static void rl_pci_conf() rep = &re_state; - strcpy(rep->re_name, "rtl8169#0"); + strlcpy(rep->re_name, "rtl8169#0", sizeof(rep->re_name)); rep->re_name[8] += re_instance; rep->re_seen = FALSE; -- 2.44.0