summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2017-05-04 04:33:08 -0400
committerTim Harder <radhermit@gentoo.org>2017-05-04 04:45:02 -0400
commit1aa46177dd3d0ea8b72d1496527b809237c68b43 (patch)
tree3d77e066a61513a8645e88d953a3f164d034fd95 /games-util/wit/files
parentapp-admin/logrotate: Bumps version to 3.12.2 (diff)
downloadgentoo-1aa46177dd3d0ea8b72d1496527b809237c68b43.tar.gz
gentoo-1aa46177dd3d0ea8b72d1496527b809237c68b43.tar.bz2
gentoo-1aa46177dd3d0ea8b72d1496527b809237c68b43.zip
games-util/wit: version bump to 2.40a
Diffstat (limited to 'games-util/wit/files')
-rw-r--r--games-util/wit/files/wit-2.40a-sizeof-pointer-memaccess.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/games-util/wit/files/wit-2.40a-sizeof-pointer-memaccess.patch b/games-util/wit/files/wit-2.40a-sizeof-pointer-memaccess.patch
new file mode 100644
index 000000000000..a6083103b857
--- /dev/null
+++ b/games-util/wit/files/wit-2.40a-sizeof-pointer-memaccess.patch
@@ -0,0 +1,20 @@
+--- 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);