From ac7234b542bbfbf2b13a01818db70281ea73b672 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Thu, 22 Feb 2018 18:33:09 -0500 Subject: Hardcode path lengths in setup --- setup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'setup.c') diff --git a/setup.c b/setup.c index 5517d7e..633a1f4 100644 --- a/setup.c +++ b/setup.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include @@ -27,8 +26,8 @@ int main(int argc, char *argv[]) { if (argc < 2) return EX_USAGE; uint32_t key[4]; - char public[PATH_MAX]; - char private[PATH_MAX]; + char public[7 + 32 + 1]; + char private[8 + 32 + 1]; snprintf(public, sizeof(public), "public/%s", argv[1]); arc4random_buf(key, sizeof(key)); -- cgit 1.4.1