diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-01-26 10:14:46 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-01-26 10:14:46 +0000 |
commit | da115da48675aa647382adaced9d993155a03da2 (patch) | |
tree | 5a3b484d46c96be9eb71be2560ffe3e1c23d5265 | |
parent | a4c67dcab58e9343c5d4a1cf06ed246de561aec0 (diff) | |
download | rockbox-da115da48675aa647382adaced9d993155a03da2.tar.gz rockbox-da115da48675aa647382adaced9d993155a03da2.zip |
Oops. Wrong arguments to memset(). Thanks to Mike Wilson for pointing that out.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4274 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/fat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/drivers/fat.c b/firmware/drivers/fat.c index a2677124ff..3e43e1c787 100644 --- a/firmware/drivers/fat.c +++ b/firmware/drivers/fat.c | |||
@@ -1343,8 +1343,8 @@ int fat_create_dir(char* name, | |||
1343 | 1343 | ||
1344 | LDEBUGF("fat_create_dir(\"%s\",%x,%x)\n",name,newdir,dir); | 1344 | LDEBUGF("fat_create_dir(\"%s\",%x,%x)\n",name,newdir,dir); |
1345 | 1345 | ||
1346 | memset(newdir, sizeof(struct fat_dir), 0); | 1346 | memset(newdir, 0, sizeof(struct fat_dir)); |
1347 | memset(&dummyfile, sizeof(struct fat_file), 0); | 1347 | memset(&dummyfile, 0, sizeof(struct fat_file)); |
1348 | 1348 | ||
1349 | /* First, add the entry in the parent directory */ | 1349 | /* First, add the entry in the parent directory */ |
1350 | rc = add_dir_entry(dir, &newdir->file, name, true, false); | 1350 | rc = add_dir_entry(dir, &newdir->file, name, true, false); |