aboutsummaryrefslogtreecommitdiffstats
path: root/src/unix/PidFile.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unix/PidFile.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unix/PidFile.hxx b/src/unix/PidFile.hxx
index a242c7810..3c3d5ca21 100644
--- a/src/unix/PidFile.hxx
+++ b/src/unix/PidFile.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2014 The Music Player Daemon Project
+ * Copyright (C) 2003-2015 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -37,11 +37,11 @@ public:
if (path.IsNull())
return;
- file = FOpen(path, "w");
+ file = FOpen(path, FOpenMode::WriteText);
if (file == nullptr) {
const std::string utf8 = path.ToUTF8();
FormatFatalSystemError("Failed to create pid file \"%s\"",
- path.c_str());
+ utf8.c_str());
}
}