From 20f5dd421f814dc4d23aef342b6ce0704d576770 Mon Sep 17 00:00:00 2001 From: izydorst Date: Fri, 17 Oct 2003 09:11:04 +0000 Subject: [PATCH] replaced one arbitrary limit by another one, will not crash on re-linking GeoPublish VLIRs (>64K) git-svn-id: svn://svn.cc65.org/cc65/trunk@2545 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/grc/grc.c | 2 +- src/grc/grc.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/grc/grc.c b/src/grc/grc.c index 1fb73e18e..ab2874f6d 100644 --- a/src/grc/grc.c +++ b/src/grc/grc.c @@ -35,7 +35,7 @@ void VLIRLinker(int argc, char *argv[]) { FILE *outCVT, *input; -unsigned char buffer[BLOODY_BIG_BUFFER]; +unsigned char buffer[THIS_BUFFER_IS_SOOO_HUGE]; unsigned char vlirtabt[127]; unsigned char vlirtabs[127]; int i,j,lastarg; diff --git a/src/grc/grc.h b/src/grc/grc.h index 98c02bd6a..d2a96362b 100644 --- a/src/grc/grc.h +++ b/src/grc/grc.h @@ -1,6 +1,8 @@ /* I hope that no one will be able to create a .grc bigger than this... */ #define BLOODY_BIG_BUFFER 65000 +/* there are no 6MB GEOS binaries... I hope! */ +#define THIS_BUFFER_IS_SOOO_HUGE 6000000 struct menuitem { char *name; -- 2.39.5