commit | 0ddb89601a8d29e808db450366752ffdc6267c53 | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@denx.de> | Wed Jan 09 10:16:33 2008 +0100 |
committer | Wolfgang Denk <wd@denx.de> | Wed Jan 09 10:16:33 2008 +0100 |
tree | 6c82cde7eb7d5ae92e441dd8dab4efb22f8e4842 | |
parent | 32d6f1bc09175f3b77469771e839bc7255a9f22e [diff] [blame] |
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 <wd@denx.de>
diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c index 513a2f9..7833551 100644 --- a/fs/ext2/ext2fs.c +++ b/fs/ext2/ext2fs.c
@@ -436,7 +436,7 @@ return (-1); } } else { - memset (buf, blocksize - skipfirst, 0); + memset (buf, 0, blocksize - skipfirst); } buf += blocksize - skipfirst; }