(parse_binding): don't zap everything after first whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5834 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -277,8 +277,9 @@ parse_binding(FILE *f, unsigned *lineno, char *p,
|
|||||||
ret = parse_list (f, lineno, &tmp->u.list);
|
ret = parse_list (f, lineno, &tmp->u.list);
|
||||||
} else {
|
} else {
|
||||||
p1 = p;
|
p1 = p;
|
||||||
while (*p && !isspace((unsigned char)*p))
|
p = p1 + strlen(p1);
|
||||||
++p;
|
while(p > p1 && isspace((unsigned char)*(p-1)))
|
||||||
|
--p;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
tmp->type = krb5_config_string;
|
tmp->type = krb5_config_string;
|
||||||
tmp->u.string = strdup(p1);
|
tmp->u.string = strdup(p1);
|
||||||
|
Reference in New Issue
Block a user