adeacon13 / wiiflow

Automatically exported from code.google.com/p/wiiflow
0 stars 0 forks source link

fix memory corruption around the WBFS_GetPartitionName call.. #449

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
char part[6];
WBFS_GetPartitionName(0, (char *) &part);
the variable part itself is a pointer
so
(char *) &part);
is wrong unless you do
(char *) &part[0]);
so best would be to use
(char *) part);
its a small memory corruption

attached is a fix for this.

Original issue reported on code.google.com by captno...@gmail.com on 12 Dec 2010 at 10:36

Attachments:

GoogleCodeExporter commented 8 years ago
As discussed, not really a corruption, but accepted and changed.

Original comment by r-...@live.com on 18 Dec 2010 at 12:21