summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-30 19:10:36 -0400
committerJune McEnroe <june@causal.agency>2020-04-30 19:10:36 -0400
commit87a92bb4275a08963691b82a74ceb4144de06058 (patch)
treed277c7839504adb252099f22f52b94ccf7e6ffa2
parentRename baseAddress to baseMailto (diff)
downloadbubger-87a92bb4275a08963691b82a74ceb4144de06058.tar.gz
bubger-87a92bb4275a08963691b82a74ceb4144de06058.zip
Remove +1s
I was right originally... why did I change this?
Diffstat (limited to '')
-rw-r--r--concat.c4
-rw-r--r--export.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/concat.c b/concat.c
index ddeaa90..563cdb4 100644
--- a/concat.c
+++ b/concat.c
@@ -72,7 +72,7 @@ void concatData(
 }
 
 static const char *uidPath(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[] = {
@@ -126,7 +126,7 @@ static int concatHTML(FILE *file, struct List thread) {
 }
 
 static const char *threadPath(const char *messageID, const char *type) {
-	static char buf[PATH_MAX + 1];
+	static char buf[PATH_MAX];
 	struct Variable vars[] = {
 		{ "messageID", messageID },
 		{ "type", type },
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) },