From 3a8b66ce67ae74a66aecadd041b49867f9267231 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 18 Sep 2021 22:05:46 +0200 Subject: init: fix off-by-one error in tar_size --- src/init/tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/init') diff --git a/src/init/tar.c b/src/init/tar.c index d25b8a5..43efe3b 100644 --- a/src/init/tar.c +++ b/src/init/tar.c @@ -60,7 +60,7 @@ static int tar_open(const char *path, int len, void *base, size_t base_len) { } static int tar_size(void *sector) { - return oct_parse(sector + 124, 12); + return oct_parse(sector + 124, 11); } static void *tar_find(const char *path, size_t path_len, void *base, size_t base_len) { -- cgit v1.2.3