projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32d6f1b
)
Fix memset bug in ext2fs_read_file()
author
Wolfgang Denk
<wd@denx.de>
Wed, 9 Jan 2008 09:16:33 +0000
(10:16 +0100)
committer
Wolfgang Denk
<wd@denx.de>
Wed, 9 Jan 2008 09:16:33 +0000
(10:16 +0100)
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>
fs/ext2/ext2fs.c
patch
|
blob
|
history
diff --git
a/fs/ext2/ext2fs.c
b/fs/ext2/ext2fs.c
index 513a2f9e3201fb78f9c068f9277ee134ba98ad18..78335510e2ba58a08bdd754050cdbd62f8c14add 100644
(file)
--- 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;
}