From: Wolfgang Denk Date: Wed, 9 Jan 2008 09:16:33 +0000 (+0100) Subject: Fix memset bug in ext2fs_read_file() X-Git-Tag: v2025.01-rc5-pxa1908~22626^2~49^2~26^2 X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=0ddb89601a8d29e808db450366752ffdc6267c53;p=u-boot.git 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: Wolfgang Denk --- diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c index 513a2f9e32..78335510e2 100644 --- a/fs/ext2/ext2fs.c +++ b/fs/ext2/ext2fs.c @@ -436,7 +436,7 @@ int ext2fs_read_file return (-1); } } else { - memset (buf, blocksize - skipfirst, 0); + memset (buf, 0, blocksize - skipfirst); } buf += blocksize - skipfirst; }