aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistSave.cxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-02-02 20:21:46 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-02-02 20:21:46 +0600
commit178c6c20cdbe95eba898a0d29c9aad2469f3dd9f (patch)
tree174ec2751063b72039a3702ce4fb0e66f0773d85 /src/PlaylistSave.cxx
parent92d71cc7fa690def8d7e2a79690fce16750e97dc (diff)
downloadmpd-178c6c20cdbe95eba898a0d29c9aad2469f3dd9f.tar.gz
mpd-178c6c20cdbe95eba898a0d29c9aad2469f3dd9f.tar.xz
mpd-178c6c20cdbe95eba898a0d29c9aad2469f3dd9f.zip
PlaylistSave.cxx: use FOpen
Diffstat (limited to 'src/PlaylistSave.cxx')
-rw-r--r--src/PlaylistSave.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx
index 96fb5b1ca..6ca6740fc 100644
--- a/src/PlaylistSave.cxx
+++ b/src/PlaylistSave.cxx
@@ -78,7 +78,7 @@ spl_save_queue(const char *name_utf8, const struct queue *queue)
if (FileExists(path_fs))
return PLAYLIST_RESULT_LIST_EXISTS;
- FILE *file = fopen(path_fs.c_str(), "w");
+ FILE *file = FOpen(path_fs, FOpenMode::WriteText);
if (file == NULL)
return PLAYLIST_RESULT_ERRNO;