Skip to content

Commit

Permalink
Update tar.c
Browse files Browse the repository at this point in the history
  • Loading branch information
apache-hb committed Apr 1, 2024
1 parent 1dfbdc1 commit 0f3c4c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/support/tar/src/tar.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "std/str.h"

#include "core/macros.h"
#include <stdio.h>

#define TAR_NAME_SIZE 100

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 0f3c4c4

Please sign in to comment.