From: chaoskagami Date: Mon, 13 Jun 2016 00:25:23 +0000 (-0400) Subject: Increase buffer size X-Git-Tag: v0.0.10~18 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=d3021fcde49ea9a0894034b3cdf367516e975efc;p=corbenik%2Fcorbenik.git Increase buffer size --- 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"