You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-util/wit/files/wit-2.40a-sizeof-pointer-me...

21 lines
466 B

--- wit-2.40a/src/wfuse.c
+++ wit-2.40a/src/wfuse.c
@@ -340,7 +340,7 @@
}
ResetWBFS(df->wbfs);
FREE(df->wbfs);
- memset(df,0,sizeof(df));
+ memset(df,0,sizeof(*df));
n_dfile--;
}
@@ -352,7 +352,7 @@
if (found_df)
{
- memset(found_df,0,sizeof(found_df));
+ memset(found_df,0,sizeof(*found_df));
WBFS_t * wbfs = MALLOC(sizeof(*wbfs));
InitializeWBFS(wbfs);
enumError err = OpenWBFS(wbfs,source_file,false,true,0);