]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc8xx/fec.c
Fix GCC format-security errors and convert sprintfs.
[u-boot] / arch / powerpc / cpu / mpc8xx / fec.c
index 2e196033c240af33a4dbc0b8ccd765a0a2857b25..ea4ab3a04237837b4cb76480be9f79782e8d0e9c 100644 (file)
@@ -148,7 +148,7 @@ int fec_initialize(bd_t *bis)
                /* for FEC1 make sure that the name of the interface is the same
                   as the old one for compatibility reasons */
                if (i == 0) {
-                       sprintf (dev->name, "FEC");
+                       strcpy(dev->name, "FEC");
                } else {
                        sprintf (dev->name, "FEC%d",
                                ether_fcc_info[i].ether_index + 1);