diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-12-13 23:24:24 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-12-13 23:24:24 +0000 |
commit | ed0223a9b3dbd091861945a51daf332a97947a31 (patch) | |
tree | f89ee704ad6c96770ab51f1bb024420536371cb5 /Build | |
parent | 25487c6aa99f783662be3ffa971c6cf31baa4999 (diff) |
dvipsk: do not use a related-but-different hardwired integer (thanks Karl)
git-svn-id: svn://tug.org/texlive/trunk@42703 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipsk/emspecial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Build/source/texk/dvipsk/emspecial.c b/Build/source/texk/dvipsk/emspecial.c index c96437620af..c96298ce267 100644 --- a/Build/source/texk/dvipsk/emspecial.c +++ b/Build/source/texk/dvipsk/emspecial.c @@ -276,7 +276,7 @@ char *emp; int i; for (emp = emp+5; *emp && isspace((unsigned char)*emp); emp++); /* skip blanks */ for (i=0; *emp && !isspace((unsigned char)*emp) && !(*emp==','); emp++) { - if (i > 498) { + if (i > (int)sizeof(emstr) - 2) { fprintf(stderr, "em:graph: special too long, truncating\n"); break; } |