1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* misc.c (optsep): Add the ability to understand keyword="quoted arg with

spaces" type options.
This commit is contained in:
David Shaw 2004-07-28 04:12:50 +00:00
parent a32297863b
commit a2e332cded
2 changed files with 20 additions and 3 deletions

View file

@ -673,11 +673,23 @@ optsep(char **stringp)
ptr++;
}
/* There is an argument, so grab that too. */
/* There is an argument, so grab that too. At this point,
ptr points to the first character of the argument. */
if(sawequals)
end=strpbrk(ptr," ,");
{
/* Is it a quoted argument? */
if(*ptr=='"')
{
ptr++;
end=strchr(ptr,'"');
if(end)
end++;
}
else
end=strpbrk(ptr," ,");
}
if(end)
if(end && *end)
{
*end='\0';
*stringp=end+1;