From 1ec714cc9643a689234adec821aca84b99619535 Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Wed, 20 Jul 2016 09:58:06 +0200 Subject: [PATCH] Fix build with Visual Studio. --- coreapi/chat_file_transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/chat_file_transfer.c b/coreapi/chat_file_transfer.c index 9a5782cea..bca204f50 100644 --- a/coreapi/chat_file_transfer.c +++ b/coreapi/chat_file_transfer.c @@ -461,7 +461,7 @@ static void linphone_chat_process_response_from_get_file(void *data, const belle bctbx_vfs_t *vfs = bctbx_vfs_get_default(); bctbx_vfs_file_t *decrypted_file; bctbx_vfs_file_t *encrypted_file = bctbx_file_open(vfs, msg->file_transfer_filepath, "r"); - int64_t encrypted_file_size = bctbx_file_size(encrypted_file); + size_t encrypted_file_size = (size_t)bctbx_file_size(encrypted_file); char *encrypted_content = bctbx_malloc(encrypted_file_size); char *decrypted_content = bctbx_malloc(encrypted_file_size); bctbx_file_read(encrypted_file, encrypted_content, encrypted_file_size, 0);