From 1822b6d04882de4d71757815408e731d788e5d1a Mon Sep 17 00:00:00 2001 From: Marc Geh Date: Tue, 24 Nov 2020 15:01:39 +0100 Subject: [PATCH] Fix wrong pointers in memcpy of pubnub_generate_uuid_v1_time() --- core/pubnub_generate_uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/pubnub_generate_uuid.c b/core/pubnub_generate_uuid.c index c6e0af49..fc71cae4 100644 --- a/core/pubnub_generate_uuid.c +++ b/core/pubnub_generate_uuid.c @@ -46,7 +46,7 @@ int pubnub_generate_uuid_v1_time( ud->clock_seq_low = *io_clock_seq & 0xFF; ud->clock_seq_hi_and_reserved = (*io_clock_seq & 0x3F00) >> 8; ud->clock_seq_hi_and_reserved |= 0x80; - memcpy(&ud->node, &i_node, sizeof ud->node); + memcpy(ud->node, i_node, sizeof ud->node); memcpy(s_timestamp, i_timestamp, sizeof s_timestamp);