From 0ecf4bf4cb26fb7de9ff69b437349aeddedb92b4 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 20 Apr 2018 00:32:43 -0400 Subject: Uncommitted changes from months ago :( --- create.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'create.c') diff --git a/create.c b/create.c index 49cadb6..59eb3e0 100644 --- a/create.c +++ b/create.c @@ -26,8 +26,8 @@ int main(int argc, char *argv[]) { if (argc < 2) errx(EX_USAGE, "missing public id"); uint32_t id[4]; - char public[10 + 32 + 1]; - char private[8 + 32 + 1]; + char public[sizeof("../public/") + 32]; + char private[sizeof("private/") + 2 * sizeof(id)]; arc4random_buf(id, sizeof(id)); snprintf(public, sizeof(public), "public/%s", argv[1]); -- cgit 1.4.1