mtd: Be more strict on the "mtdparts=" prefix check
strstr() does not guarantee that the string we're searching for is placed at the beginning. Use strncmp() instead. Fixes: 5db66b3a ("cmd: mtd: add 'mtd' command") Signed-off-by: NBoris Brezillon <boris.brezillon@bootlin.com> Tested-by: NHeiko Schocher <hs@denx.de>
Showing
想要评论请 注册 或 登录