diff options
author | dzwdz | 2021-09-18 22:05:46 +0200 |
---|---|---|
committer | dzwdz | 2021-09-18 22:05:46 +0200 |
commit | 3a8b66ce67ae74a66aecadd041b49867f9267231 (patch) | |
tree | 781b21f81e49aa7b83174732f46a3f9c1bd3916b /src/init | |
parent | a26876079cb155b013461aa525276b9cc8598ccf (diff) |
init: fix off-by-one error in tar_size
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |