]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_mtdparts.c
Fix GCC format-security errors and convert sprintfs.
[u-boot] / common / cmd_mtdparts.c
index 422c069513843f930ce1eeccf2a9aa2e89b7fcf1..dab195841a74fbeed0104e0f6d6f55328b682472 100644 (file)
@@ -1086,7 +1086,7 @@ static int generate_mtdparts(char *buf, u32 buflen)
                return 0;
        }
 
-       sprintf(p, "mtdparts=");
+       strcpy(p, "mtdparts=");
        p += 9;
 
        list_for_each(dentry, &devices) {