Commit 70683f7debc1ce0e75f11a22acc2828b80be8f26

Ran Benita 2012-07-14T12:37:25

path: fix error message 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/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;
         }