Browse Source

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>
Wolfgang Denk 17 years ago
parent
commit
0ddb89601a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fs/ext2/ext2fs.c

+ 1 - 1
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;
 	}