summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-19 11:26:51 -0400
committerJune McEnroe <june@causal.agency>2020-04-19 11:26:51 -0400
commiteec36a38f17013c6d56b9f2af9cc78d7fd202827 (patch)
tree70e6320e2461f9f2a4251cb007f37132f0f2e777
parentFactor out templateBuffer (diff)
downloadbubger-eec36a38f17013c6d56b9f2af9cc78d7fd202827.tar.gz
bubger-eec36a38f17013c6d56b9f2af9cc78d7fd202827.zip
Skip leading whitespace in message IDs
Diffstat (limited to '')
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 5c4eba0..808852a 100644
--- a/parse.c
+++ b/parse.c
@@ -47,6 +47,7 @@ static struct AddressList parseAddressList(struct List list) {
 }
 
 static char *parseID(char *id) {
+	while (isspace(id[0])) id++;
 	size_t len = strlen(id);
 	if (id[0] != '<' || !len || id[len - 1] != '>') {
 		errx(EX_PROTOCOL, "invalid message ID");