From 5caec883b96337590adb447438ff7be1e552bf30 Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Thu, 1 Mar 2012 23:19:05 -0800 Subject: [PATCH] Fix for Ubuntu. --- util/log.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/log.hpp b/util/log.hpp index 3c940758..885133a2 100644 --- a/util/log.hpp +++ b/util/log.hpp @@ -96,10 +96,10 @@ struct log_info_st if (opt_syslog) { char buffer[1024]; - (void)getcwd(buffer, sizeof(buffer)); + char *getcwd_ret= getcwd(buffer, sizeof(buffer)); syslog(LOG_ERR, "Could not open log file \"%.*s\", from \"%s\", open failed with (%s)", int(filename.size()), filename.c_str(), - buffer, + getcwd_ret, strerror(errno)); } std::cerr << "Could not open log file for writing, switching to stderr." << std::endl; -- 2.30.2