commit b816a09ffce49a4718e49ac3b5d9a4c7ab4c17e8
parent d18d7c66f8d6eb6e74f87a368b920895f4eed969
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Mon, 1 May 2006 23:35:20 +0200
removed strcmp in font.c
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/liblitz/font.c b/liblitz/font.c
@@ -33,7 +33,7 @@ blitz_loadfont(Display *dpy, BlitzFont *font, char *fontstr)
if(font->set)
XFreeFontSet(dpy, font->set);
font->set = nil;
- if(!loc || !strcmp(loc, "C") || !strcmp(loc, "POSIX")|| !XSupportsLocale()) {
+ if(!loc || !strncmp(loc, "C", 2) || !strncmp(loc, "POSIX", 6)|| !XSupportsLocale()) {
font->set = XCreateFontSet(dpy, fontname, &missing, &n, &def);
if(missing) {
while(n--)