Use g_stat() instead of stat() with GStatBuf

This commit is contained in:
Juan Jose Garcia-Ripoll
2020-10-02 09:51:33 +02:00
parent 4cdd819d03
commit c885df06a1

View File

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