diff options
Diffstat (limited to '')
-rw-r--r-- | create.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]); |