summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVan de Bugger <van.de.bugger@gmail.com>2011-02-15 23:51:16 +0300
committerPeter Hutterer <peter.hutterer@who-t.net>2011-02-16 07:47:19 +1000
commit0b0763e1f444cabfab8a76c73d8d96892c72433e (patch)
tree1a495b4b16286fd34a37722d162e5f38cb3e4c5f
parent130998b172d892ea94daac2a06b7422977fad135 (diff)
Bug in searching config files fixed.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--setxkbmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/setxkbmap.c b/setxkbmap.c
index be3c262..3d3b7d8 100644
--- a/setxkbmap.c
+++ b/setxkbmap.c
@@ -642,7 +642,7 @@ findFileInPath(char *name, char *subdir)
subdir, name);
continue;
}
- fp = fopen(name, "r");
+ fp = fopen(buf, "r");
if ((verbose > 7) || ((!fp) && (verbose > 5)))
MSG2("%s file %s\n", (fp ? "Found" : "Didn't find"), buf);
if (fp != NULL)