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 |