diff options
author | Wolfgang Denk <wd@denx.de> | 2008-01-09 10:16:33 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-01-09 10:16:33 +0100 |
commit | 0ddb89601a8d29e808db450366752ffdc6267c53 (patch) | |
tree | 6c82cde7eb7d5ae92e441dd8dab4efb22f8e4842 /fs/ext2 | |
parent | 32d6f1bc09175f3b77469771e839bc7255a9f22e (diff) |
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>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/ext2fs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c index 513a2f9e320..78335510e2b 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; } |