cosmetics
This commit is contained in:
parent
2fac353c85
commit
f49caf67f6
|
@ -1613,10 +1613,12 @@ xchat_set_plugin_pref (xchat_plugin *pl, char *var, char *value)
|
||||||
close (fhOut);
|
close (fhOut);
|
||||||
|
|
||||||
sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
|
sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
|
||||||
|
sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
unlink (buffer);
|
unlink (buffer);
|
||||||
#endif
|
#endif
|
||||||
sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
|
|
||||||
if (rename (buffer_tmp, buffer) == 0)
|
if (rename (buffer_tmp, buffer) == 0)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -1658,10 +1660,11 @@ xchat_set_plugin_pref (xchat_plugin *pl, char *var, char *value)
|
||||||
close (fhOut);
|
close (fhOut);
|
||||||
|
|
||||||
sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
|
sprintf (buffer, "%s/%s", get_xdir_fs (), confname);
|
||||||
|
sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
unlink (buffer);
|
unlink (buffer);
|
||||||
#endif
|
#endif
|
||||||
sprintf (buffer_tmp, "%s/%s", get_xdir_fs (), confname_tmp);
|
|
||||||
|
|
||||||
if (rename (buffer_tmp, buffer) == 0)
|
if (rename (buffer_tmp, buffer) == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue