--- src/io/io.cc.orig 2003-07-14 23:53:16.000000000 +0200 +++ src/io/io.cc 2003-07-14 23:52:09.000000000 +0200 @@ -159,8 +159,10 @@ //------------------------------------------------------------------------ void IO::setModeSyslog(const string &servicename, int facility = LOG_DAEMON) { + static string sname; + sname = servicename; if (mode != MODE_SYSLOG) { - openlog(servicename.c_str(), LOG_PID, facility); + openlog(sname.c_str(), LOG_PID, facility); mode = MODE_SYSLOG; } }