summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authordzwdz2021-09-18 22:05:46 +0200
committerdzwdz2021-09-18 22:05:46 +0200
commit3a8b66ce67ae74a66aecadd041b49867f9267231 (patch)
tree781b21f81e49aa7b83174732f46a3f9c1bd3916b /src/init
parenta26876079cb155b013461aa525276b9cc8598ccf (diff)
init: fix off-by-one error in tar_size
Diffstat (limited to 'src/init')
-rw-r--r--src/init/tar.c2
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) {