summaryrefslogtreecommitdiff
path: root/src/compose
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-13 15:05:48 +0300
committerRan Benita <ran234@gmail.com>2014-10-13 18:54:58 +0300
commit0b99c63cf4fa187c0fc29bef546e1be806852da2 (patch)
tree0d50f33768deda663c63ee977e2fe15d33167c49 /src/compose
parent8bba4b34ecccdec8785540d8e659136e3194e9d9 (diff)
downloadlibxkbcommon-0b99c63cf4fa187c0fc29bef546e1be806852da2.tar.gz
libxkbcommon-0b99c63cf4fa187c0fc29bef546e1be806852da2.tar.bz2
libxkbcommon-0b99c63cf4fa187c0fc29bef546e1be806852da2.zip
compose/parser: use parameter as intended
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/compose')
-rw-r--r--src/compose/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compose/parser.c b/src/compose/parser.c
index 42c9d2a..1e9d137 100644
--- a/src/compose/parser.c
+++ b/src/compose/parser.c
@@ -470,7 +470,7 @@ do_include(struct xkb_compose_table *table, struct scanner *s,
return false;
}
- file = fopen(s->buf, "r");
+ file = fopen(path, "r");
if (!file) {
scanner_err(s, "failed to open included Compose file \"%s\": %s",
path, strerror(errno));