summaryrefslogtreecommitdiff
path: root/src/user/lib
diff options
context:
space:
mode:
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;
}