aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-09-07 15:50:59 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-09-07 15:50:59 +0200
commit06cc4bd693ab70f60b87e7da9191c66f68c3c52f (patch)
treefc61490f11181a4b91b09b162ba0c0b78b0a931e
parentf7eee8dc0154f92dc3aa0fa81124eb88ece492c7 (diff)
downloadmblaze-06cc4bd693ab70f60b87e7da9191c66f68c3c52f.tar.gz
mblaze822: blaze822_addr: add simple group parsing
Just ignores the group name, and considers ; an address separator too.
-rw-r--r--blaze822.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/blaze822.c b/blaze822.c
index ebeb648..d15f4c9 100644
--- a/blaze822.c
+++ b/blaze822.c
@@ -196,7 +196,12 @@ blaze822_addr(char *s, char **dispo, char **addro)
*c++ = *s++;
if (*s == ')')
s++;
- } else if (*s == ',') {
+ } else if (*s == ':') {
+ s++;
+ while (iswsp(*s))
+ s++;
+ c = disp; // forget already read group name
+ } else if (*s == ',' || *s == ';') {
s++;
break;
} else {