projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e7025
)
ofpbuf: Allow whitespace other than spaces in hex data.
author
Ben Pfaff
<blp@nicira.com>
Tue, 5 Nov 2013 06:37:23 +0000
(22:37 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 5 Nov 2013 17:46:12 +0000
(09:46 -0800)
It's easier to cut and paste lines of hexadecimal data into a command line
if you don't have to worry about new-lines appearing in the command.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/ofpbuf.c
patch
|
blob
|
history
diff --git
a/lib/ofpbuf.c
b/lib/ofpbuf.c
index
f7145db
..
d578ab5
100644
(file)
--- 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) {