path: fix error message Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/xkbcomp/path.c b/src/xkbcomp/path.c
index 2b0a7a0..f98961f 100644
--- a/src/xkbcomp/path.c
+++ b/src/xkbcomp/path.c
@@ -204,7 +204,7 @@ XkbFindFileInPath(struct xkb_context *ctx,
if (file == NULL) {
ERROR("Couldn't open file (%s/%s/%s): %s\n",
xkb_context_include_path_get(ctx, i), typeDir, name,
- strerror(-errno));
+ strerror(errno));
ACTION("Ignored\n");
continue;
}