summaryrefslogtreecommitdiff
path: root/backend/dvi/mdvi-lib/afmparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/dvi/mdvi-lib/afmparse.c')
-rw-r--r--backend/dvi/mdvi-lib/afmparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/dvi/mdvi-lib/afmparse.c b/backend/dvi/mdvi-lib/afmparse.c
index 164366b0..361e23d6 100644
--- a/backend/dvi/mdvi-lib/afmparse.c
+++ b/backend/dvi/mdvi-lib/afmparse.c
@@ -160,7 +160,7 @@ static char *token(FILE *stream)
idx = 0;
while (ch != EOF && ch != ' ' && ch != lineterm
- && ch != '\t' && ch != ':' && ch != ';')
+ && ch != '\t' && ch != ':' && ch != ';' && idx < MAX_NAME)
{
ident[idx++] = ch;
ch = fgetc(stream);