]> Zhao Yanbai Git Server - minix.git/commitdiff
dp8390: resolve Coverity warnings (encore)
authorDavid van Moolenbroek <david@minix3.org>
Mon, 13 Aug 2012 16:33:58 +0000 (16:33 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 14 Aug 2012 09:11:18 +0000 (09:11 +0000)
drivers/dp8390/dp8390.c

index f347c9fbbc6af154cc4b2363ecebe915e970ebb4..a7ea8593e7e2c16a567d11f82bca6fd2724b97c9 100644 (file)
@@ -1640,7 +1640,7 @@ dp_conf_t *dcp;
        }
 #endif
 
-       strcpy(eckey, "DPETH0");
+       strlcpy(eckey, "DPETH0", sizeof(eckey));
        eckey[5] += de_instance;
 
        /* Get the default settings and modify them from the environment. */