--- loncom/cgi/mimeTeX/gifsave.c 2006/03/24 23:08:33 1.2 +++ loncom/cgi/mimeTeX/gifsave.c 2007/10/09 21:41:41 1.3 @@ -1,4 +1,4 @@ -/* $Id: gifsave.c,v 1.2 2006/03/24 23:08:33 albertel Exp $ */ +/* $Id: gifsave.c,v 1.3 2007/10/09 21:41:41 albertel Exp $ */ /************************************************************************** * * FILE gifsave.c @@ -71,8 +71,11 @@ typedef unsigned char Byte; /* exact static FILE *OutFile = NULL; /* file to write to */ static Byte *OutBuffer = NULL; /* (added by j.forkosh) */ static int isCloseOutFile = 0; /* " */ +#if !defined(MAXGIFSZ) /* " */ + #define MAXGIFSZ 131072 /* " max #bytes comprising gif image */ +#endif /* " */ int gifSize = 0; /* " #bytes comprising gif */ -int maxgifSize = 64000; /* " max #bytes written to OutBuffer */ +int maxgifSize = MAXGIFSZ; /* " max #bytes written to OutBuffer */ /* used when writing to a file bitwise */ static Byte Buffer[256]; /* there must be one more than `needed' */