From: Ben Pfaff Date: Wed, 27 Jan 2010 23:58:32 +0000 (-0800) Subject: ovsdb-data: Allow arbitrary white space as string data delimiters. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb4562170bdb37e1bb33f291a85fe275380af785;p=openvswitch ovsdb-data: Allow arbitrary white space as string data delimiters. --- diff --git a/lib/ovsdb-data.c b/lib/ovsdb-data.c index 70e290b0..1f3a89d6 100644 --- a/lib/ovsdb-data.c +++ b/lib/ovsdb-data.c @@ -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 *