[PATCH setxkbmap] Bug in searching config files fixed.

Van de Bugger van.de.bugger at gmail.com
Tue Feb 15 12:46:05 PST 2011


---
 setxkbmap.c |    2 +-
 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)
-- 
1.7.4





More information about the xorg-devel mailing list