aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;