mirror of
https://github.com/openvswitch/ovs
synced 2025-10-19 14:37:21 +00:00
ovsdb-data: Allow arbitrary white space as string data delimiters.
This commit is contained in:
@@ -813,7 +813,10 @@ ovsdb_datum_to_json(const struct ovsdb_datum *datum,
|
|||||||
static const char *
|
static const char *
|
||||||
skip_spaces(const char *p)
|
skip_spaces(const char *p)
|
||||||
{
|
{
|
||||||
return p + strspn(p, " ");
|
while (isspace((unsigned char) *p)) {
|
||||||
|
p++;
|
||||||
|
}
|
||||||
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
Reference in New Issue
Block a user