This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository minilauncher-for-slippi.
View the commit online.
commit 26282fef9198843f0fa2951e4b0e2ec70c1545ba
Author: Nekobit <m...@ow.nekobit.net>
AuthorDate: Mon Sep 11 13:09:32 2023 -0400
Fix replays array (wow)
---
replay.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/replay.c b/replay.c
index 0167642..bf5806d 100644
--- a/replay.c
+++ b/replay.c
@@ -13,7 +13,7 @@ struct replay
char* p2;
char* p2code;
int game_state;
-} replays[25565] = {0};
+}* replays = NULL;
size_t replays_len = 0;
unsigned
@@ -135,6 +135,7 @@ recurse_replay_files()
{
if (ep->d_name && ep->d_name[0] != '.')
{
+ replays = realloc(replays, sizeof(struct replay) * (replays_len+2));
struct replay* rpy = replays + replays_len++;
rpy->filename = strdup(ep->d_name);
// End
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.