ovsdb-data: Allow arbitrary white space as string data delimiters.
[sliver-openvswitch.git] / lib / ovsdb-data.c
index 70e290b..1f3a89d 100644 (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 *