From 0f3c4c42c659cba83bcf729cce5f08b00d95607b Mon Sep 17 00:00:00 2001 From: Elliot <35050275+apache-hb@users.noreply.github.com> Date: Sun, 31 Mar 2024 23:40:44 -0400 Subject: [PATCH] Update tar.c --- src/support/tar/src/tar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/support/tar/src/tar.c b/src/support/tar/src/tar.c index e0c131c0..7e8fba4a 100644 --- a/src/support/tar/src/tar.c +++ b/src/support/tar/src/tar.c @@ -12,6 +12,7 @@ #include "std/str.h" #include "core/macros.h" +#include #define TAR_NAME_SIZE 100 @@ -195,7 +196,7 @@ static tar_error_t archive_dir(io_t *dst, fs_t *src, fs_iter_t *iter, const char return eTarReadError; } - archive_dir(dst, src, inner, name, arena); + archive_dir(dst, src, inner, str_format(arena, "%s/%s", dir, name), arena); fs_iter_end(inner); }