diff options
| -rw-r--r-- | snag/util.c | 6 | ||||
| -rw-r--r-- | 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; @@ -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 |
