Explorar o código

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 %!s(int64=17) %!d(string=hai) anos
pai
achega
0ddb89601a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 	}