aboutsummaryrefslogtreecommitdiff
path: root/src/PlaylistSave.cxx
diff options
context:
space:
mode:
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 96fb5b1c..6ca6740f 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;