Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 116629
Collapse All | Expand All

(-)src/config.cpp.orig (-2 / +4 lines)
Lines 78-83 Link Here
78
// makefile.
78
// makefile.
79
char *get_config_location(bool write) {
79
char *get_config_location(bool write) {
80
#ifdef LINUX
80
#ifdef LINUX
81
	char *config_path;
81
	// Get the path to the config file
82
	// Get the path to the config file
82
	string tmp = get_tomatoes_dir() + "config.cfg";
83
	string tmp = get_tomatoes_dir() + "config.cfg";
83
84
Lines 90-97 Link Here
90
		}
91
		}
91
		fclose(ftest);
92
		fclose(ftest);
92
	}
93
	}
93
94
	config_path = new char[tmp.length()+1];
94
	return (char*)tmp.c_str();
95
	strcpy(config_path,tmp.c_str());
96
	return config_path;
95
#endif
97
#endif
96
98
97
	// Return the CONFIG_DIR
99
	// Return the CONFIG_DIR

Return to bug 116629