eliminate string copy
This commit is contained in:
parent
8723541a34
commit
288bdff7e2
1 changed files with 5 additions and 6 deletions
|
|
@ -19534,14 +19534,13 @@ static void setup(int argc, char *argv[])
|
||||||
|
|
||||||
if (ok_to_use_sysconfig)
|
if (ok_to_use_sysconfig)
|
||||||
{
|
{
|
||||||
#ifndef WIN32
|
#ifdef WIN32
|
||||||
snprintf(str, sizeof(str), "%s/tuxpaint.conf", CONFDIR);
|
// global config file in the application directory
|
||||||
|
parse_file_options("tuxpaint.cfg");
|
||||||
#else
|
#else
|
||||||
/* Global config file in the application directory on Windows */
|
// normally /etc/tuxpaint/tuxpaint.conf
|
||||||
strcpy(str, "tuxpaint.cfg");
|
parse_file_options(CONFDIR "tuxpaint.conf");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
parse_file_options(str);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue