From 7d6c8ca00e7cdc946e73d7b981579bf119927ef9 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Thu, 25 Feb 2016 17:08:13 +0100 Subject: [PATCH] This should fix export issue on win32 --- coreapi/friendlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/friendlist.c b/coreapi/friendlist.c index 039917bfe..49485736c 100644 --- a/coreapi/friendlist.c +++ b/coreapi/friendlist.c @@ -815,7 +815,7 @@ void linphone_friend_list_export_friends_as_vcard4_file(LinphoneFriendList *list FILE *file = NULL; const MSList *friends = linphone_friend_list_get_friends(list); - file = fopen(vcard_file, "w"); + file = fopen(vcard_file, "wb"); if (file == NULL) { ms_warning("Could not write %s ! Maybe it is read-only. Contacts will not be saved.", vcard_file); return;