summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2018-02-22 18:33:09 -0500
committerJune McEnroe <programble@gmail.com>2018-02-22 18:33:09 -0500
commitac7234b542bbfbf2b13a01818db70281ea73b672 (patch)
tree5efdf8ed525eb88bdd6fbf6245d5464cee9119c1
parentAdd setup, start command (diff)
downloadstream-ac7234b542bbfbf2b13a01818db70281ea73b672.tar.gz
stream-ac7234b542bbfbf2b13a01818db70281ea73b672.zip
Hardcode path lengths in setup
-rw-r--r--setup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/setup.c b/setup.c
index 5517d7e..633a1f4 100644
--- a/setup.c
+++ b/setup.c
@@ -19,7 +19,6 @@
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <sys/syslimits.h>
 #include <sysexits.h>
 #include <unistd.h>
 
@@ -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));