diff options
Diffstat (limited to 'src/repo/s6rc_repo_listcontents.c')
| -rw-r--r-- | src/repo/s6rc_repo_listcontents.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/repo/s6rc_repo_listcontents.c b/src/repo/s6rc_repo_listcontents.c index bcfc946..bb9a99b 100644 --- a/src/repo/s6rc_repo_listcontents.c +++ b/src/repo/s6rc_repo_listcontents.c @@ -56,8 +56,9 @@ int s6rc_repo_listcontents (char const *repo, char const *bundle, stralloc *stor return (WEXITSTATUS(wstat) < 99) - 1 ; } - if (!string_index(storage->s + sabase, sabase, storage->len, '\n', indices)) goto err ; - return 1 ; + if (!string_index(storage->s, sabase, storage->len - sabase, '\n', indices)) goto err ; + s6rc_repo_removeinternals(indices, gabase, storage->s) ; + return 1 ; err: if (gwasnull) genalloc_free(size_t, indices) ; |
