From 178c6c20cdbe95eba898a0d29c9aad2469f3dd9f Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Sat, 2 Feb 2013 20:21:46 +0600 Subject: PlaylistSave.cxx: use FOpen --- src/PlaylistSave.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PlaylistSave.cxx') 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; -- cgit v1.2.3