1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-30 08:57:49 +00:00

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
This commit is contained in:
izydorst 2003-10-17 09:11:04 +00:00
parent 096d23ccf0
commit 20f5dd421f
2 changed files with 3 additions and 1 deletions

View File

@ -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;

View File

@ -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;