From c885df06a1242a8b39d136a8669c8f1e015c74b6 Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia-Ripoll Date: Fri, 2 Oct 2020 09:51:33 +0200 Subject: [PATCH] Use g_stat() instead of stat() with GStatBuf --- lib/utils/mu-logger.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/mu-logger.cc b/lib/utils/mu-logger.cc index d9b6decc..75175277 100644 --- a/lib/utils/mu-logger.cc +++ b/lib/utils/mu-logger.cc @@ -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;