Use evbuffer for building S, W, L lists, also add an xmemdup helper

instead of misusing asprintf.
This commit is contained in:
nicm
2026-06-18 10:56:22 +00:00
parent d92a479d2f
commit 0a6c846091
3 changed files with 64 additions and 35 deletions

View File

@@ -26,6 +26,7 @@ void *xreallocarray(void *, size_t, size_t);
void *xrecallocarray(void *, size_t, size_t, size_t);
char *xstrdup(const char *);
char *xstrndup(const char *, size_t);
char *xmemdup(const void *, size_t);
int xasprintf(char **, const char *, ...)
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));