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