mtools/mtools-memset.patch

14 lines
704 B
Diff
Raw Normal View History

2005-03-21 11:28:18 +00:00
--- mtools-3.9.9/fat.c.memset 2005-03-21 11:23:10.000000000 +0000
+++ mtools-3.9.9/fat.c 2005-03-21 11:23:36.000000000 +0000
@@ -437,8 +437,8 @@
InfoSector_t *infoSector;
infoSector = (InfoSector_t *) safe_malloc(This->sector_size);
set_dword(infoSector->signature1, INFOSECT_SIGNATURE1);
- memset(infoSector->filler1, sizeof(infoSector->filler1),0);
- memset(infoSector->filler2, sizeof(infoSector->filler2),0);
+ memset(infoSector->filler1, 0, sizeof(infoSector->filler1));
+ memset(infoSector->filler2, 0, sizeof(infoSector->filler2));
set_dword(infoSector->signature2, INFOSECT_SIGNATURE2);
set_dword(infoSector->pos, This->last);
set_dword(infoSector->count, This->freeSpace);