From 165816f7854340c3ca09287aee66968777af61ad Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Wed, 22 Jul 2026 08:15:39 -0400 Subject: todos --- snag/util.c | 6 ++++-- todo.txt | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/snag/util.c b/snag/util.c index 57a31a4..9a962b0 100644 --- a/snag/util.c +++ b/snag/util.c @@ -56,9 +56,11 @@ char* vastrcat_(int dummy, ...) { if (!output) return NULL; char* p = output; while ((arg = va_arg(args, char*))) { - memcpy(p, arg, strlen(arg)); - p += strlen(arg); + size_t alen = strlen(arg); + memcpy(p, arg, alen); + p += alen; } + output[len] = '\0'; va_end(args2); return output; diff --git a/todo.txt b/todo.txt index 70665bd..54aac73 100644 --- a/todo.txt +++ b/todo.txt @@ -1,7 +1,10 @@ SNAG - [x] make install subcommand actually run the install script - [x] multiple subcommand handling and proper argument parsing -- [ ] download packages and verify hash +- [ ] add output and error functions for regular program output, make emalloc also have file info, also gen sh to configure +- [ ] download packages to download db and verify hash +- [ ] actually create install environment for packages in install script +- [ ] snag api - [ ] actually try to handle a proper package installation - [ ] figure out how we handle make configuration, and tools for build scripts - [ ] dependencies -- cgit v1.2.3