diff options
| author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2025-11-10 14:41:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-10 14:41:21 -0500 |
| commit | cf50be9ef96fd8011fbd45321b4c454470112cf4 (patch) | |
| tree | d0586dd5cfc703586752dfc318a068a31539850a /src/cli/stasis_indexer/website.c | |
| parent | d90493618ce34a732c5411d1670be57d4dd9db4e (diff) | |
| parent | b999413700231b5d922c91addef7c080fd289b30 (diff) | |
| download | stasis-cf50be9ef96fd8011fbd45321b4c454470112cf4.tar.gz | |
Merge pull request #119 from jhunkeler/indexer-buffer-overlow
Indexer buffer overflow and leak(s)
Diffstat (limited to 'src/cli/stasis_indexer/website.c')
| -rw-r--r-- | src/cli/stasis_indexer/website.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/stasis_indexer/website.c b/src/cli/stasis_indexer/website.c index 55f0c45..966391e 100644 --- a/src/cli/stasis_indexer/website.c +++ b/src/cli/stasis_indexer/website.c @@ -1,7 +1,7 @@ #include "core.h" #include "website.h" -int indexer_make_website(const struct Delivery *ctx) { +int indexer_make_website(struct Delivery **ctx) { char *css_filename = calloc(PATH_MAX, sizeof(*css_filename)); if (!css_filename) { SYSERROR("unable to allocate string for CSS file path: %s", strerror(errno)); @@ -12,8 +12,8 @@ int indexer_make_website(const struct Delivery *ctx) { const int have_css = access(css_filename, F_OK | R_OK) == 0; struct StrList *dirs = strlist_init(); - strlist_append(&dirs, ctx->storage.delivery_dir); - strlist_append(&dirs, ctx->storage.results_dir); + strlist_append(&dirs, (*ctx)->storage.delivery_dir); + strlist_append(&dirs, (*ctx)->storage.results_dir); struct StrList *inputs = NULL; for (size_t i = 0; i < strlist_count(dirs); i++) { |
