From 0b0763e1f444cabfab8a76c73d8d96892c72433e Mon Sep 17 00:00:00 2001 From: Van de Bugger Date: Tue, 15 Feb 2011 23:51:16 +0300 Subject: Bug in searching config files fixed. Signed-off-by: Peter Hutterer --- setxkbmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3