]> Chaos Git - corbenik/corbenik.git/commitdiff
Increase buffer size
authorchaoskagami <chaos.kagami@gmail.com>
Mon, 13 Jun 2016 00:25:23 +0000 (20:25 -0400)
committerchaoskagami <chaos.kagami@gmail.com>
Mon, 13 Jun 2016 00:25:23 +0000 (20:25 -0400)
external/loader/source/interp.c

index 512f51be0c741c2d642ca8595d45d23fa1b56b60..b36ef1aeb2f33ac1670ebdb780a39d9f31089f63 100644 (file)
 #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"