diff options
author | Leah Neukirchen <leah@vuxu.org> | 2020-04-03 22:46:35 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2020-04-03 22:46:35 +0200 |
commit | e56f8ad294d269bcb918c15168bf7b0c4f858fb4 (patch) | |
tree | c8a68833ddfb8b58bbb6be63f652cf986c2c8796 /blaze822.c | |
parent | 3370fd5f705987aa92e613ee914d613ffa247e2c (diff) | |
download | mblaze-e56f8ad294d269bcb918c15168bf7b0c4f858fb4.tar.gz mblaze-e56f8ad294d269bcb918c15168bf7b0c4f858fb4.tar.xz mblaze-e56f8ad294d269bcb918c15168bf7b0c4f858fb4.zip |
blaze822: blaze822_addr: null-terminate ttok at the current position before appending
Diffstat (limited to 'blaze822.c')
-rw-r--r-- | blaze822.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/blaze822.c b/blaze822.c index 0434d89..d34a4ae 100644 --- a/blaze822.c +++ b/blaze822.c @@ -277,6 +277,7 @@ blaze822_addr(char *s, char **dispo, char **addro) if (memchr(tok, '@', c - tok)) not_addr = 1; // @ inside "" is never an addr + *tc = 0; tc += safe_append(ttok, sizeof ttok, tok, c); } else if (*s == '(') { char *z = skip_comment(s); |