diff options
-rw-r--r-- | g10/ChangeLog | 5 | ||||
-rw-r--r-- | g10/g10.c | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog index 7b9d2443e..4b09f1362 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,8 @@ +2003-01-14 Werner Koch <[email protected]> + + * 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 <[email protected]> * tdbio.c (tdbio_set_dbname): Fix assertion failure with @@ -859,8 +859,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," "))) + { + if (*value) + add_to_strlist2 (&values,value,utf8_strings); + } item=m_alloc(sizeof(struct groupitem)); item->name=name; |