ovsdb-data: Allow arbitrary white space as string data delimiters.
authorBen Pfaff <blp@nicira.com>
Wed, 27 Jan 2010 23:58:32 +0000 (15:58 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 28 Jan 2010 22:22:40 +0000 (14:22 -0800)
lib/ovsdb-data.c

index 70e290b0889bf268713511f3952248e700c834ce..1f3a89d633cf6fa6a07a030fa411cbe4c15221d7 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 *