Skip to content

Commit 61e03cc

Browse files
committed
Fix #220
1 parent 3a691f4 commit 61e03cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rdswitch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ read_scan_script (j_compress_ptr cinfo, char *filename)
193193
int scanno, ncomps, termchar;
194194
long val;
195195
jpeg_scan_info *scanptr;
196-
#define MAX_SCANS 100 /* quite arbitrary limit */
196+
#define MAX_SCANS 64 /* must match scan_buffer size */
197197
jpeg_scan_info scans[MAX_SCANS];
198198

199199
if ((fp = fopen(filename, "r")) == NULL) {

0 commit comments

Comments
 (0)