]> Zhao Yanbai Git Server - minix.git/commitdiff
rtl8169: resolve Coverity warnings
authorDavid van Moolenbroek <david@minix3.org>
Mon, 30 Jul 2012 12:09:13 +0000 (12:09 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 30 Jul 2012 12:10:15 +0000 (12:10 +0000)
drivers/rtl8169/rtl8169.c

index 5ef8ae419dceb02656cf03eb92ace162aafc5da6..6a3490205895623e56e43189355294c3bbcde8eb 100644 (file)
@@ -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;