From 0ddb89601a8d29e808db450366752ffdc6267c53 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Wed, 9 Jan 2008 10:16:33 +0100 Subject: [PATCH] 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 --- fs/ext2/ext2fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5