Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/SoftEtherVPN/libhamcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Memory.c')
-rw-r--r--Memory.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Memory.c b/Memory.c
index 661d729..237efb9 100644
--- a/Memory.c
+++ b/Memory.c
@@ -21,6 +21,8 @@ void WriteAndSeek(void **dst, const void *src, const size_t size)
return;
}
- memcpy(*dst, src, size);
- *dst += size;
+ uint8_t **buf = (uint8_t **)dst;
+
+ memcpy(*buf, src, size);
+ *buf += size;
}