2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

ovsdb-data: Allow arbitrary white space as string data delimiters.

This commit is contained in:
Ben Pfaff
2010-01-27 15:58:32 -08:00
parent 54a687fd7b
commit cb4562170b

View File

@@ -813,7 +813,10 @@ ovsdb_datum_to_json(const struct ovsdb_datum *datum,
static const char *
skip_spaces(const char *p)
{
return p + strspn(p, " ");
while (isspace((unsigned char) *p)) {
p++;
}
return p;
}
static char *