diff options
-rw-r--r-- | src/init/fs/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init/fs/misc.c b/src/init/fs/misc.c index d2e2614..a45347a 100644 --- a/src/init/fs/misc.c +++ b/src/init/fs/misc.c @@ -142,8 +142,10 @@ void fs_dir_inject(const char *path) { struct fs_dir_handle h = handles[res.id]; int out_len = 0; - while (h.inject[out_len] != '/') out_len++; // TODO ensure trailing slash + while (h.inject[out_len] != '/') + out_len++; memcpy(buf, h.inject, out_len); + buf[out_len++] = '/'; buf[out_len++] = '\0'; if (h.delegate >= 0) { |