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 :( --- destroy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'destroy.c') 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); -- cgit 1.4.1