]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Fix memset bug in ext2fs_read_file()
authorWolfgang Denk <wd@denx.de>
Wed, 9 Jan 2008 09:16:33 +0000 (10:16 +0100)
committerWolfgang 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

index 513a2f9e3201fb78f9c068f9277ee134ba98ad18..78335510e2ba58a08bdd754050cdbd62f8c14add 100644 (file)
@@ -436,7 +436,7 @@ int ext2fs_read_file
                                return (-1);
                        }
                } else {
-                       memset (buf, blocksize - skipfirst, 0);
+                       memset (buf, 0, blocksize - skipfirst);
                }
                buf += blocksize - skipfirst;
        }