Browse Source

Merge branch 'bugfix_defcfg' into bfgminer

Luke Dashjr 13 years ago
parent
commit
66cf470884
1 changed files with 2 additions and 5 deletions
  1. 2 5
      miner.c

+ 2 - 5
miner.c

@@ -1168,15 +1168,12 @@ static void load_default_config(void)
 	strcpy(dirp, ".bfgminer/");
 	strcpy(dirp, ".bfgminer/");
 	strcat(dirp, def_conf);
 	strcat(dirp, def_conf);
 	if (access(cnfbuf, R_OK))
 	if (access(cnfbuf, R_OK))
-	{
 		// No BFGMiner config, try Cgminer's...
 		// No BFGMiner config, try Cgminer's...
-		strcpy(dirp, ".cgminer/");
-		strcat(dirp, def_conf);
-	}
+		strcpy(dirp, ".cgminer/cgminer.conf");
 #else
 #else
 	strcpy(cnfbuf, "");
 	strcpy(cnfbuf, "");
-#endif
 	strcat(cnfbuf, def_conf);
 	strcat(cnfbuf, def_conf);
+#endif
 	if (!access(cnfbuf, R_OK))
 	if (!access(cnfbuf, R_OK))
 		load_config(cnfbuf, NULL);
 		load_config(cnfbuf, NULL);
 	else {
 	else {