X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofpbuf.c;h=d578ab56a229b81537ce25b3bf0de369fb89c367;hb=ac60863f78e412004c5b69f5a64a49bc6f0bc46d;hp=f7145dbfe90607080c3243ea6498f940bf5fb5d1;hpb=c68cc3ef3fa0ee3ade3c86035e5c3d7eb066a605;p=sliver-openvswitch.git diff --git a/lib/ofpbuf.c b/lib/ofpbuf.c index f7145dbfe..d578ab56a 100644 --- a/lib/ofpbuf.c +++ b/lib/ofpbuf.c @@ -407,7 +407,7 @@ ofpbuf_put_hex(struct ofpbuf *b, const char *s, size_t *n) uint8_t byte; bool ok; - s += strspn(s, " "); + s += strspn(s, " \t\r\n"); byte = hexits_value(s, 2, &ok); if (!ok) { if (n) {