diff options
author | Davide Beatrici <git@davidebeatrici.dev> | 2021-03-10 03:56:55 +0300 |
---|---|---|
committer | Davide Beatrici <git@davidebeatrici.dev> | 2021-03-10 03:56:55 +0300 |
commit | 8b0b250f2cb9bdeef9730c432c002acd8e6f614f (patch) | |
tree | 354cfaa6d2b3850d38c8e6e7b861c560e6b4da2a /Memory.c | |
parent | c798511e419ededd0cbe34a09f2aaca5111d9576 (diff) |
Fix errors and warnings reported by MSVC, explicitly set C99
Diffstat (limited to 'Memory.c')
-rw-r--r-- | Memory.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |