diff --git a/dlls/wineps/afm.c b/dlls/wineps/afm.c index 5499a9e3c0b..b3afa85bd8d 100644 --- a/dlls/wineps/afm.c +++ b/dlls/wineps/afm.c @@ -60,6 +60,7 @@ static void PSDRV_AFMGetCharMetrics(AFM *afm, FILE *fp) while(isspace(*value)) value++; cp = endpos = strchr(value, ';'); + if (!cp) { ERR("missing ;, failed.\n"); return; } while(isspace(*--cp)) ; memcpy(valbuf, value, cp - value + 1);