diff --git a/g10/ChangeLog b/g10/ChangeLog index 5f183815e..d8713cd50 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,8 @@ +2003-01-14 Werner Koch + + * g10.c (add_group): Fixed group parsing to allow more than one + delimiter in a row and also allow tab as delimiter. + 2003-01-12 David Shaw * tdbio.c (tdbio_set_dbname): Fix assertion failure with diff --git a/g10/g10.c b/g10/g10.c index 16e9decdd..d9de9139a 100644 --- a/g10/g10.c +++ b/g10/g10.c @@ -838,8 +838,11 @@ static void add_group(char *string) } /* Break apart the values */ - while((value=strsep(&string," ")) && *value!='\0') - add_to_strlist2(&values,value,utf8_strings); + while ((value=strsep (&string," \t"))) + { + if (*value) + add_to_strlist2(&values,value,utf8_strings); + } item=m_alloc(sizeof(struct groupitem)); item->name=name;