提交 0ddb8960 编写于 作者: W Wolfgang Denk

Fix memset bug in ext2fs_read_file()

ext2fs_read_file() had the function arguments swapped.

Pointed out by Mike Montour, 19 Dec 2007 22:34:25 -0800
Signed-off-by: NWolfgang Denk <wd@denx.de>
上级 32d6f1bc
......@@ -436,7 +436,7 @@ int ext2fs_read_file
return (-1);
}
} else {
memset (buf, blocksize - skipfirst, 0);
memset (buf, 0, blocksize - skipfirst);
}
buf += blocksize - skipfirst;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册