diff options
Diffstat (limited to 'camlibs/spca50x/spca50x-sdram.c')
-rw-r--r-- | camlibs/spca50x/spca50x-sdram.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camlibs/spca50x/spca50x-sdram.c b/camlibs/spca50x/spca50x-sdram.c index d445947aa..8ac57e26f 100644 --- a/camlibs/spca50x/spca50x-sdram.c +++ b/camlibs/spca50x/spca50x-sdram.c @@ -872,8 +872,8 @@ spca50x_get_FATs (CameraPrivateLibrary * lib, int dramtype) lib->files = NULL; } - lib->fats = malloc (lib->num_fats * SPCA50X_FAT_PAGE_SIZE); - lib->files = malloc (lib->num_files_on_sdram * sizeof (struct SPCA50xFile)); + lib->fats = calloc (lib->num_fats , SPCA50X_FAT_PAGE_SIZE); + lib->files = calloc (lib->num_files_on_sdram , sizeof (struct SPCA50xFile)); p = lib->fats; if (lib->bridge == BRIDGE_SPCA504) { |