From 4944437e894637ad99b3b22b3fd7aa60e3243aaa Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 21 Aug 2020 18:00:52 -0400 Subject: Use a static buffer for base directory paths --- litterbox.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'litterbox.c') diff --git a/litterbox.c b/litterbox.c index 72df0c4..5a88132 100644 --- a/litterbox.c +++ b/litterbox.c @@ -858,11 +858,9 @@ int main(int argc, char *argv[]) { tls_config_insecure_noverifyname(config); } - const char *dirs; - char pbuf[PATH_MAX]; if (cert) { - dirs = NULL; - while (NULL != (path = configPath(pbuf, sizeof(pbuf), &dirs, cert))) { + const char *dirs = NULL; + while (NULL != (path = configPath(&dirs, cert))) { if (priv) { error = tls_config_set_cert_file(config, path); } else { @@ -873,8 +871,8 @@ int main(int argc, char *argv[]) { if (error) errx(EX_NOINPUT, "%s: %s", cert, tls_config_error(config)); } if (priv) { - dirs = NULL; - while (NULL != (path = configPath(pbuf, sizeof(pbuf), &dirs, priv))) { + const char *dirs = NULL; + while (NULL != (path = configPath(&dirs, priv))) { error = tls_config_set_key_file(config, path); if (!error) break; } -- cgit 1.4.1 ts/log/sysutils/catsit/distinfo?showmsg=1&follow=1'>log tree commit diff
path: root/sysutils/catsit/distinfo (unfollow)
Commit message (Collapse)Author
2020-11-24Update pounce to 2.1June McEnroe
2020-11-24Update libretls to 3.3.0June McEnroe
2020-11-17Update catgirl to 1.3June McEnroe
2020-11-17Update libretls to 3.2.2June McEnroe
2020-09-29Update libretls to 3.2.1June McEnroe
2020-09-10Update catgirl to 1.2June McEnroe
2020-09-09Add pounce-palaver portJune McEnroe
2020-09-09Update pounce to 2.0June McEnroe
2020-09-09Update litterbox to 1.6June McEnroe
2020-08-23Add scooper portJune McEnroe
2020-08-23Add catsit portJune McEnroe
2020-08-13Update pounce to 1.4p2June McEnroe
2020-08-11Update pounce to 1.4p1June McEnroe
2020-08-10Add litterbox portJune McEnroe
2020-08-10Add missing USES=pkgconfig to pounceJune McEnroe