summary refs log tree commit diff
path: root/destroy.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-04-20 00:32:43 -0400
committerJune McEnroe <june@causal.agency>2018-04-20 00:32:43 -0400
commit0ecf4bf4cb26fb7de9ff69b437349aeddedb92b4 (patch)
tree32d56366126ba0bc2c0ade6154ee8a5490268048 /destroy.c
parentRemove winch (diff)
downloadstream-0ecf4bf4cb26fb7de9ff69b437349aeddedb92b4.tar.gz
stream-0ecf4bf4cb26fb7de9ff69b437349aeddedb92b4.zip
Uncommitted changes from months ago :(
Diffstat (limited to '')
-rw-r--r--destroy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/destroy.c b/destroy.c
index 02355f0..6a82bbe 100644
--- a/destroy.c
+++ b/destroy.c
@@ -26,7 +26,7 @@ int main(int argc, char *argv[]) {
     if (fd < 0) err(EX_NOINPUT, "private");
 
     const char *private = argv[1];
-    char public[10 + 32 + 1] = {0};
+    char public[sizeof("../public/") + 32] = {0};
     ssize_t n = readlinkat(fd, private, public, sizeof(public) - 1);
     if (n < 0) err(EX_NOINPUT, "%s", private);