From 3c645356e5c92fc5faa77e81fab2f16b11cd6242 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 18 Dec 2023 12:09:21 +0000 Subject: Actually add autosurf_name; fix cspawn leak in error path Signed-off-by: Laurent Bercot --- src/librandom/autosurf_name.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/librandom/autosurf_name.c (limited to 'src/librandom') diff --git a/src/librandom/autosurf_name.c b/src/librandom/autosurf_name.c new file mode 100644 index 0000000..b0641c0 --- /dev/null +++ b/src/librandom/autosurf_name.c @@ -0,0 +1,9 @@ +/* ISC license. */ + +#include +#include + +void autosurf_name (char *s, size_t n) +{ + random_name_from(s, n, &autosurf) ; +} -- cgit v1.2.3