From: izydorst Date: Fri, 17 Oct 2003 09:11:04 +0000 (+0000) Subject: replaced one arbitrary limit by another one, will not crash on re-linking GeoPublish... X-Git-Tag: V2.12.0~1248 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=20f5dd421f814dc4d23aef342b6ce0704d576770;p=cc65 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 --- 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;