compose/parser: use parameter as intended Signed-off-by: Ran Benita <ran234@gmail.com>
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));