Skip to content

Commit

Permalink
fix: cast malloc correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
DevYukine committed Oct 31, 2020
1 parent 68b1f48 commit c30eb11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys-botbaseplus/source/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void Commands::poke(u64 offset, u64 size, u8 *val)

void Commands::peek(u64 offset, u64 size)
{
u8 *out = malloc(sizeof(u8) * size);
u8 *out = (u8 *)malloc(sizeof(u8) * size);
attach();
Result rc = svcReadDebugProcessMemory(out, debughandle, offset, size);
if (R_FAILED(rc) && Variables::debugResultCodes)
Expand Down

0 comments on commit c30eb11

Please sign in to comment.