https://github.com/libsdl-org/Maelstrom/commit/44a6d72c3975aa8a2cd53c7e386ae8e118330df1
From 44a6d72c3975aa8a2cd53c7e386ae8e118330df1 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 20 Nov 2011 21:37:48 -0500
Subject: [PATCH] Whoops, we were compressing the data and then writing the
uncompressed size.
---
game/replay.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/game/replay.cpp b/game/replay.cpp
index d2d43056..7a10023e 100644
--- a/game/replay.cpp
+++ b/game/replay.cpp
@@ -279,6 +279,7 @@ Replay::Save(const char *file)
fprintf(stderr, "Error compressing replay data\n");
goto error_return;
}
+ data.len = destLen;
if (!PHYSFS_writeULE32(fp, m_data.Size())) {
goto physfs_write_error;
}