summaryrefslogtreecommitdiff
path: root/Build/source/texk/dvipdfm-x
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-09-07 00:49:01 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2020-09-07 00:49:01 +0000
commit7af5b170f7d5b63179d42c76385ddf52bcd849bc (patch)
treef53cbbeb1cf13c4964155725312ab850d8d0d410 /Build/source/texk/dvipdfm-x
parent503d02cff27401e462aae30e664d19bc2b98058a (diff)
Update pdfcolorstack support (bug fix) (S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@56281 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog4
-rw-r--r--Build/source/texk/dvipdfm-x/spc_misc.c4
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) {