diff options
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/spc_misc.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index 6da4c586f91..df358bdef67 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,7 @@ +2020-09-07 Shunsaku Hirata <shunsaku.hirata74@gmail.com> + + * spc_misc.c: Fix a bug that the upper limit of stack id is wrong. + 2020-09-06 Shunsaku Hirata <shunsaku.hirata74@gmail.com> * spc_pdfm.c: pdf:bcolor and pdf:scolor now accept new diff --git a/Build/source/texk/dvipdfm-x/spc_misc.c b/Build/source/texk/dvipdfm-x/spc_misc.c index 9b9c7a7d9bf..c30fbb92003 100644 --- a/Build/source/texk/dvipdfm-x/spc_misc.c +++ b/Build/source/texk/dvipdfm-x/spc_misc.c @@ -95,7 +95,7 @@ pdfcolorstack__init (void *dp) struct spc_stack *sd = dp; int i; - for (i = 0; i < 64; i++) { + for (i = 0; i < PDFCOLORSTACK_MAX_STACK; i++) { sd->stacks[i].page = 0; sd->stacks[i].direct = 0; dpx_stack_init(&sd->stacks[i].stack); @@ -356,7 +356,7 @@ spc_misc_at_begin_page (void) struct spc_stack *sd = &spc_stack; int i; - for (i = 0; i < 64; i++) { + for (i = 0; i < PDFCOLORSTACK_MAX_STACK; i++) { dpx_stack *stk = &sd->stacks[i].stack; if (sd->stacks[i].page) { |