From cb4562170bdb37e1bb33f291a85fe275380af785 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 27 Jan 2010 15:58:32 -0800 Subject: [PATCH] ovsdb-data: Allow arbitrary white space as string data delimiters. --- lib/ovsdb-data.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 * -- 2.30.2