summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-01-09 10:16:33 +0100
committerWolfgang Denk <wd@denx.de>2008-01-09 10:16:33 +0100
commit0ddb89601a8d29e808db450366752ffdc6267c53 (patch)
tree6c82cde7eb7d5ae92e441dd8dab4efb22f8e4842 /fs
parent32d6f1bc09175f3b77469771e839bc7255a9f22e (diff)
downloadu-boot-imx-0ddb89601a8d29e808db450366752ffdc6267c53.zip
u-boot-imx-0ddb89601a8d29e808db450366752ffdc6267c53.tar.gz
u-boot-imx-0ddb89601a8d29e808db450366752ffdc6267c53.tar.bz2
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')
-rw-r--r--fs/ext2/ext2fs.c2
1 files changed, 1 insertions, 1 deletions
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 @@ int ext2fs_read_file
return (-1);
}
} else {
- memset (buf, blocksize - skipfirst, 0);
+ memset (buf, 0, blocksize - skipfirst);
}
buf += blocksize - skipfirst;
}