Use g_stat() instead of stat() with GStatBuf
This commit is contained in:
@ -65,7 +65,7 @@ maybe_rotate_logfile ()
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
GStatBuf statbuf;
|
GStatBuf statbuf;
|
||||||
if (::stat (MuLogPath.c_str(), &statbuf) == -1 ||
|
if (g_stat(MuLogPath.c_str(), &statbuf) == -1 ||
|
||||||
statbuf.st_size <= MaxLogFileSize)
|
statbuf.st_size <= MaxLogFileSize)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user