2016-02-01 17:10:03 +01:00
|
|
|
---
|
2016-06-14 12:26:43 +02:00
|
|
|
texk/dvipng/dvipng-src/vf.c | 2 +-
|
2016-02-01 17:10:03 +01:00
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2016-06-14 12:26:43 +02:00
|
|
|
--- texk/dvipng/dvipng-src/vf.c
|
|
|
|
+++ texk/dvipng/dvipng-src/vf.c 2016-01-28 12:28:40.787060207 +0000
|
2011-12-20 18:29:17 +01:00
|
|
|
@@ -115,7 +115,7 @@ void InitVF(struct font_entry * tfontp)
|
2016-02-01 17:10:03 +01:00
|
|
|
tcharptr->tfmw = (int32_t)
|
2011-12-20 18:29:17 +01:00
|
|
|
((int64_t) tcharptr->tfmw * tfontp->s / (1 << 20));
|
|
|
|
DEBUG_PRINT(DEBUG_VF,(" (%d)",tcharptr->tfmw));
|
|
|
|
- if (c >= NFNTCHARS) /* Only positive for now */
|
2016-02-01 17:10:03 +01:00
|
|
|
+ if (c < 0 || c >= NFNTCHARS) /* Only positive for now */
|
2011-12-20 18:29:17 +01:00
|
|
|
Fatal("VF font %s exceeds char numbering limit",tfontp->name);
|
|
|
|
tfontp->chr[c] = tcharptr;
|
|
|
|
tcharptr->data=position;
|