git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ovsdb-data: Allow arbitrary white space as string data delimiters.
[sliver-openvswitch.git]
/
lib
/
ovsdb-data.c
diff --git
a/lib/ovsdb-data.c
b/lib/ovsdb-data.c
index
70e290b
..
1f3a89d
100644
(file)
--- 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 *