From 87a92bb4275a08963691b82a74ceb4144de06058 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 30 Apr 2020 19:10:36 -0400 Subject: Remove +1s I was right originally... why did I change this? --- export.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'export.c') diff --git a/export.c b/export.c index 9e40870..4728810 100644 --- a/export.c +++ b/export.c @@ -30,7 +30,7 @@ #include "imap.h" static const char *exportPath(uint32_t uid, const char *type) { - static char buf[PATH_MAX + 1]; + static char buf[PATH_MAX]; char str[32]; snprintf(str, sizeof(str), "%" PRIu32, uid); struct Variable vars[] = { @@ -85,7 +85,7 @@ static void exportMbox( || fclose(file); if (error) err(EX_IOERR, "%s", path); - char buf[PATH_MAX + 1]; + char buf[PATH_MAX]; struct Variable vars[] = { { "messageID", envelope->messageID }, { "type", "mbox" }, @@ -170,7 +170,7 @@ static int exportHTMLAttachment( const char *disposition = part->disposition.type; if (!disposition) disposition = "INLINE"; - char path[PATH_MAX + 1]; + char path[PATH_MAX]; struct Variable vars[] = { { "messageID", envelope->messageID }, { "section", sectionName(section) }, -- cgit 1.4.1