diff options
author | dzwdz | 2022-08-26 12:19:13 +0200 |
---|---|---|
committer | dzwdz | 2022-08-26 12:19:13 +0200 |
commit | eba8e12e8f0d113056264f71b8cbcda730e93506 (patch) | |
tree | b9d5efa10cfa2d308a7df23a91cf3ea2199950be /src/user/lib | |
parent | dc351c97829ef8d15219d90e32101768bd0481be (diff) |
shared: memmove
Diffstat (limited to 'src/user/lib')
-rw-r--r-- | src/user/lib/fs/misc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/user/lib/fs/misc.c b/src/user/lib/fs/misc.c index d130901..7922659 100644 --- a/src/user/lib/fs/misc.c +++ b/src/user/lib/fs/misc.c @@ -51,10 +51,7 @@ void fs_passthru(const char *prefix) { break; } - // TODO memmove - char tmp[64]; - memcpy(tmp, buf, res.len); - memcpy(buf + prefix_len, tmp, res.len); + memmove(buf + prefix_len, buf, res.len); memcpy(buf, prefix, prefix_len); res.len += prefix_len; } |