git.y1.nz

SameBoy

Accurate GB/GBC emulator
download: https://git.y1.nz/archives/sameboy.tar.gz
README | Files | Log | Refs | LICENSE

commit 5823bf9d701f133db8c9573f7f105d68a0b9d490
parent ecbdb9e95e52407a6ba50fd141f38572f102d7d5
Author: Lior Halphon <LIJI32@gmail.com>
Date:   Sat, 25 Nov 2023 21:24:56 +0200

Merge branch 'master' of github.com:LIJI32/SameBoy

Diffstat:
MCore/cheats.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Core/cheats.c b/Core/cheats.c @@ -132,7 +132,7 @@ void GB_remove_cheat(GB_gameboy_t *gb, const GB_cheat_t *cheat) *hash = NULL; } else { - *hash = malloc(sizeof(GB_cheat_hash_t) + sizeof(cheat) * (*hash)->size); + *hash = realloc(*hash, sizeof(GB_cheat_hash_t) + sizeof(cheat) * (*hash)->size); } break; } @@ -228,7 +228,7 @@ void GB_update_cheat(GB_gameboy_t *gb, const GB_cheat_t *_cheat, const char *des *hash = NULL; } else { - *hash = malloc(sizeof(GB_cheat_hash_t) + sizeof(cheat) * (*hash)->size); + *hash = realloc(*hash, sizeof(GB_cheat_hash_t) + sizeof(cheat) * (*hash)->size); } break; }

This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.