compose/parser: use parameter as intended
authorRan Benita <ran234@gmail.com>
Mon, 13 Oct 2014 12:05:48 +0000 (15:05 +0300)
committerRan Benita <ran234@gmail.com>
Mon, 13 Oct 2014 15:54:58 +0000 (18:54 +0300)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/compose/parser.c

index 42c9d2a..1e9d137 100644 (file)
@@ -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));