mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-25 15:27:03 +01:00
* g10.c (add_group): Fixed group parsing to allow more than one
delimiter in a row and also allow tab as delimiter.
This commit is contained in:
parent
d65d805aad
commit
631eed9c64
@ -1,3 +1,8 @@
|
|||||||
|
2003-01-14 Werner Koch <wk@gnupg.org>
|
||||||
|
|
||||||
|
* 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 <dshaw@jabberwocky.com>
|
2003-01-12 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
* tdbio.c (tdbio_set_dbname): Fix assertion failure with
|
* tdbio.c (tdbio_set_dbname): Fix assertion failure with
|
||||||
|
@ -838,8 +838,11 @@ static void add_group(char *string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Break apart the values */
|
/* Break apart the values */
|
||||||
while((value=strsep(&string," ")) && *value!='\0')
|
while ((value=strsep (&string," \t")))
|
||||||
|
{
|
||||||
|
if (*value)
|
||||||
add_to_strlist2(&values,value,utf8_strings);
|
add_to_strlist2(&values,value,utf8_strings);
|
||||||
|
}
|
||||||
|
|
||||||
item=m_alloc(sizeof(struct groupitem));
|
item=m_alloc(sizeof(struct groupitem));
|
||||||
item->name=name;
|
item->name=name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user