Commit 0b99c63cf4fa187c0fc29bef546e1be806852da2

Ran Benita 2014-10-13T15:05:48

compose/parser: use parameter as intended Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
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));