From 94632fcd68f71f5b5e2f8e867742eef1797bbb9d Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 7 Dec 1998 10:36:56 +0000 Subject: [PATCH] Bugfix: -microsoft-symbol encoding was not recognized. --- graphics/x11drv/xfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/x11drv/xfont.c b/graphics/x11drv/xfont.c index 25396d958cc..00741c39392 100644 --- a/graphics/x11drv/xfont.c +++ b/graphics/x11drv/xfont.c @@ -375,7 +375,7 @@ static int LFD_InitFontInfo( fontInfo* fi, LPSTR lpstr ) else /* ... and -microsoft-cp125x */ { fi->df.dfCharSet = OEM_CHARSET; - if( !strncasecmp(lpch, localMSEncoding, 6) ) + if( !strncasecmp(lpch, localMSEncoding, strlen(localMSEncoding)) ) { lpch = LFD_Advance( lpch, 1 ); if( lpch && (i = atoi( lpch )) < numCPTranslation )