texlive[42703] Build/source/texk/dvipsk/emspecial.c: dvipsk: do not
commits+kakuto at tug.org
commits+kakuto at tug.org
Wed Dec 14 00:24:24 CET 2016
Revision: 42703
http://tug.org/svn/texlive?view=revision&revision=42703
Author: kakuto
Date: 2016-12-14 00:24:24 +0100 (Wed, 14 Dec 2016)
Log Message:
-----------
dvipsk: do not use a related-but-different hardwired integer (thanks Karl)
Modified Paths:
--------------
trunk/Build/source/texk/dvipsk/emspecial.c
Modified: trunk/Build/source/texk/dvipsk/emspecial.c
===================================================================
--- trunk/Build/source/texk/dvipsk/emspecial.c 2016-12-13 22:53:07 UTC (rev 42702)
+++ trunk/Build/source/texk/dvipsk/emspecial.c 2016-12-13 23:24:24 UTC (rev 42703)
@@ -276,7 +276,7 @@
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;
}
More information about the tex-live-commits
mailing list