diff options
| author | June McEnroe <june@causal.agency> | 2020-04-19 11:26:51 -0400 |
|---|---|---|
| committer | June McEnroe <june@causal.agency> | 2020-04-19 11:26:51 -0400 |
| commit | eec36a38f17013c6d56b9f2af9cc78d7fd202827 (patch) | |
| tree | 70e6320e2461f9f2a4251cb007f37132f0f2e777 | |
| parent | Factor out templateBuffer (diff) | |
| download | bubger-eec36a38f17013c6d56b9f2af9cc78d7fd202827.tar.gz bubger-eec36a38f17013c6d56b9f2af9cc78d7fd202827.zip | |
Skip leading whitespace in message IDs
| -rw-r--r-- | parse.c | 1 |
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"); |