diff --git a/sysctl.c b/sysctl.c
index 872eceb..1424593 100644
--- a/sysctl.c
+++ b/sysctl.c
@@ -539,7 +539,7 @@ static int PreloadSystem(void) {
 	 if (!strcmp(de->d_name, ".") || !strcmp(de->d_name, "..")) {
 	    continue;
 	 }
-	 if (strlen(de->d_name) < 6 || !strcmp(de->d_name+strlen(de->d_name)-6, ".conf"))
+	 if (strlen(de->d_name) < 6 || strcmp(de->d_name+strlen(de->d_name)-5, ".conf"))
 	    continue;
 	 /* check if config already known */
 	 for (i = 0; i < ncfgs; ++i) {
