summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/saveload/saveload.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp
index 625a106ff..4925e51d5 100644
--- a/src/saveload/saveload.cpp
+++ b/src/saveload/saveload.cpp
@@ -1913,7 +1913,7 @@ struct LZOLoadFilter : LoadFilter {
if (tmp[0] != lzo_adler32(0, out, size + sizeof(uint32))) SlErrorCorrupt("Bad checksum");
/* Decompress */
- lzo1x_decompress(out + sizeof(uint32) * 1, size, buf, &len, NULL);
+ lzo1x_decompress_safe(out + sizeof(uint32) * 1, size, buf, &len, NULL);
return len;
}
};