eliminate string copy

This commit is contained in:
Albert Cahalan 2009-11-08 09:39:30 +00:00
parent 8723541a34
commit 288bdff7e2

View file

@ -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);
} }