From d3021fcde49ea9a0894034b3cdf367516e975efc Mon Sep 17 00:00:00 2001 From: chaoskagami Date: Sun, 12 Jun 2016 20:25:23 -0400 Subject: [PATCH] Increase buffer size --- external/loader/source/interp.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/external/loader/source/interp.c b/external/loader/source/interp.c index 512f51b..b36ef1a 100644 --- a/external/loader/source/interp.c +++ b/external/loader/source/interp.c @@ -15,9 +15,13 @@ #include "../../../source/config.h" #include "../../../source/patch_format.h" -// Because I want to avoid malloc. -// Patches must be smaller than this (including header!) -#define MAX_PATCHSIZE 512 +// Patches must consist of fewer bytes than this. +// 16K is reasonable, IMO, and doesn't cause issues. + +// I'm too lazy to implement file buffering here, +// and 16K is large enough for anything. + +#define MAX_PATCHSIZE 16384 // Yes, we're including a C file. Problem? #include "../../../source/interp.c" -- 2.39.5