summaryrefslogtreecommitdiff
path: root/src/user/lib
diff options
context:
space:
mode:
authordzwdz2022-08-26 12:19:13 +0200
committerdzwdz2022-08-26 12:19:13 +0200
commiteba8e12e8f0d113056264f71b8cbcda730e93506 (patch)
treeb9d5efa10cfa2d308a7df23a91cf3ea2199950be /src/user/lib
parentdc351c97829ef8d15219d90e32101768bd0481be (diff)
shared: memmove
Diffstat (limited to 'src/user/lib')
-rw-r--r--src/user/lib/fs/misc.c5
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;
}