diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-02-02 20:21:46 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-02-02 20:21:46 +0600 |
commit | 178c6c20cdbe95eba898a0d29c9aad2469f3dd9f (patch) | |
tree | 174ec2751063b72039a3702ce4fb0e66f0773d85 | |
parent | 92d71cc7fa690def8d7e2a79690fce16750e97dc (diff) | |
download | mpd-178c6c20cdbe95eba898a0d29c9aad2469f3dd9f.tar.gz mpd-178c6c20cdbe95eba898a0d29c9aad2469f3dd9f.tar.xz mpd-178c6c20cdbe95eba898a0d29c9aad2469f3dd9f.zip |
PlaylistSave.cxx: use FOpen
-rw-r--r-- | src/PlaylistSave.cxx | 2 |
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; |