From ea5fb548c5e78415a213dbbdb0108dc3c0c2ca50 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sat, 27 Feb 2010 18:40:46 +0000 Subject: [PATCH] MSVC compatiblity: Use a char* pointer for the memcpy() input argument. This is required by MSVC because we do some pointer arithmetic in the memcpy() argument, but in order to do this, MSVC wants to know the pointed-to type of the pointer because pointer arithmetic increases the pointer not by a number a bytes but a number of sizeof(type). MSVC thinks for void* it doesn't count bytes. We achieve the desired effect by using a char* pointer so that bytes are counted. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18752 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/xml/io-gncxml-v1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/xml/io-gncxml-v1.c b/src/backend/xml/io-gncxml-v1.c index 2b20ff3fe9..509ea74e33 100644 --- a/src/backend/xml/io-gncxml-v1.c +++ b/src/backend/xml/io-gncxml-v1.c @@ -720,7 +720,7 @@ kvp_frame_binary_end_handler(gpointer data_for_children, gpointer parent_data, gpointer global_data, gpointer *result, const gchar *tag) { - void *data; + char *data; guint64 total_size; guint64 pos; kvp_value *kvpv;