diff options
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index faa57c18b..205fb2501 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -197,14 +197,14 @@ static void InitSignals() static void remove_pidfile() { - remove(Config->GetBlock("serverinfo")->Get<const char *>("pid")); + remove(Config->GetBlock("serverinfo")->Get<const Anope::string>("pid").c_str()); } /* Create our PID file and write the PID to it. */ static void write_pidfile() { - FILE *pidfile = fopen(Config->GetBlock("serverinfo")->Get<const char *>("pid"), "w"); + FILE *pidfile = fopen(Config->GetBlock("serverinfo")->Get<const Anope::string>("pid").c_str(), "w"); if (pidfile) { #ifdef _WIN32 |