diff --git a/utilities/exchange_data.c b/utilities/exchange_data.c index 10aa79255..f17e7f9c5 100644 --- a/utilities/exchange_data.c +++ b/utilities/exchange_data.c @@ -385,7 +385,7 @@ HYPRE_Int hypre_DataExchangeList(HYPRE_Int num_contacts, index_ptr = (void *) ((char *) send_response_buf + max_response_size_bytes); - memcpy(index_ptr, &response_message_size, response_obj_size); + memcpy(index_ptr, &response_message_size, sizeof(HYPRE_Int)); /*send the block of data that includes the overhead */ /* this is a blocking send - the recv has already been posted */