Index: dlls/wineps/afm.c =================================================================== RCS file: /home/wine/wine/dlls/wineps/afm.c,v retrieving revision 1.5 diff -u -r1.5 afm.c --- dlls/wineps/afm.c 2001/02/12 01:25:46 1.5 +++ dlls/wineps/afm.c 2001/02/12 13:23:46 @@ -430,7 +430,8 @@ if (dir) { struct dirent *dent; while ((dent=readdir(dir))) { - if (strstr(dent->d_name,".afm")) { + int len = strlen(dent->d_name); + if (len > 4 && !strcmp(dent->d_name + len - 4 ,".afm")) { char *afmfn; afmfn=(char*)HeapAlloc(GetProcessHeap(),0,strlen(afmdir)+strlen(dent->d_name)+1);