summaryrefslogtreecommitdiff
path: root/xkb/xkbInit.c
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2004-03-26 17:11:49 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2004-03-26 17:11:49 +0000
commit83880dd464a415d3d0efa546b1f0b9887342e809 (patch)
treeada14466ff78b5107edcce83c0c757d7554f1952 /xkb/xkbInit.c
parent861a33678243349b987ff30912985968ede8ac84 (diff)
29. XkbWriteRulesProp fails if XkbRulesFile is NULL. Bug #376. (AlanXACE-SELINUX-BASE
Coopersmith)
Diffstat (limited to 'xkb/xkbInit.c')
-rw-r--r--xkb/xkbInit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xkb/xkbInit.c b/xkb/xkbInit.c
index b582845d9..260446eb8 100644
--- a/xkb/xkbInit.c
+++ b/xkb/xkbInit.c
@@ -1,4 +1,5 @@
/* $Xorg: xkbInit.c,v 1.3 2000/08/17 19:53:47 cpqbld Exp $ */
+/* $XdotOrg$ */
/************************************************************
Copyright (c) 1993 by Silicon Graphics Computer Systems, Inc.
@@ -188,6 +189,9 @@ char * pval;
if (XkbRulesFile) {
strcpy(&pval[out],XkbRulesFile);
out+= strlen(XkbRulesFile);
+ } else {
+ strcpy(&pval[out],XKB_DFLT_RULES_FILE);
+ out+= strlen(XKB_DFLT_RULES_FILE);
}
pval[out++]= '\0';
if (XkbModelUsed) {