Update GuardedMemcpy.md (#602)

Fix the signature of `memcpy`.
This commit is contained in:
Saar Amar
2023-03-07 12:32:40 +02:00
committed by GitHub
parent 6066cbaafb
commit 959531b6e3

View File

@@ -12,7 +12,7 @@ So let's see how we detect this with snmalloc.
## What is `memcpy`? ## What is `memcpy`?
So `memcpy(src, dst, len)` copies `len` bytes from `src` to `dst`. So `memcpy(dst, src, len)` copies `len` bytes from `src` to `dst`.
For this to be valid, we can check: For this to be valid, we can check:
``` ```
if (src is managed by snmalloc) if (src is managed by snmalloc)