summary refs log tree commit diff
path: root/destroy.c
diff options
context:
space:
mode:
Diffstat (limited to 'destroy.c')
-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);