From: David van Moolenbroek Date: Mon, 30 Jul 2012 12:09:13 +0000 (+0000) Subject: rtl8169: resolve Coverity warnings X-Git-Tag: v3.2.1~420 X-Git-Url: http://zhaoyanbai.com/repos/COPYRIGHT?a=commitdiff_plain;h=e34f611be3d3162228efe5bcd95b99c2bb4e7da2;p=minix.git rtl8169: resolve Coverity warnings --- 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;