summaryrefslogtreecommitdiff
path: root/xc
diff options
context:
space:
mode:
authorkaleb <empty>1995-09-12 19:53:45 +0000
committerkaleb <empty>1995-09-12 19:53:45 +0000
commit9badb22931dbeef56abce0035bb6ccb3df972178 (patch)
tree39d43d8b977cd9348031491cee1f0c921a4aff11 /xc
parent033881a3ca494233b2e00bf7a6b4e3e1e9d24a20 (diff)
*** empty log message ***
Diffstat (limited to 'xc')
-rw-r--r--xc/lib/X11/omGeneric.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/xc/lib/X11/omGeneric.c b/xc/lib/X11/omGeneric.c
index 0854a2018..2184e1f31 100644
--- a/xc/lib/X11/omGeneric.c
+++ b/xc/lib/X11/omGeneric.c
@@ -1,4 +1,4 @@
-/* $XConsortium: omGeneric.c,v 1.8 95/06/02 23:29:17 converse Exp kaleb $ */
+/* $XConsortium: omGeneric.c,v 1.9 95/09/12 19:23:55 kaleb Exp kaleb $ */
/*
* Copyright 1992, 1993 by TOSHIBA Corp.
*
@@ -435,8 +435,11 @@ parse_fontname(oc)
* There are 14 fields in an XLFD name -- make certain the
* charset (& encoding) is placed in the correct field.
*/
- last = strrchr (last, '-');
- if (num_fields == 14) last = strrchr (last - 1, '-');
+ last = strrchr (buf, '-');
+ if (num_fields == 14) {
+ *last = '\0';
+ last = strrchr (buf, '-');
+ }
} else {
/*
* Keep in mind that the server will provide a scaled font in response to