Fix for Ubuntu.
authorBrian Aker <brian@tangent.org>
Fri, 2 Mar 2012 07:19:05 +0000 (23:19 -0800)
committerBrian Aker <brian@tangent.org>
Fri, 2 Mar 2012 07:19:05 +0000 (23:19 -0800)
util/log.hpp

index 3c940758dc2b4bf3d28c0e155932ff78c810d9b7..885133a2b66cd0d785175586fdf84013be4d2734 100644 (file)
@@ -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;