projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8afa2d1
)
dpctl: Don't print trailing garbage in "dpctl status" output.
author
Ben Pfaff
<blp@nicira.com>
Fri, 27 Feb 2009 00:20:00 +0000
(16:20 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Sat, 28 Feb 2009 00:50:51 +0000
(16:50 -0800)
utilities/dpctl.c
patch
|
blob
|
history
diff --git
a/utilities/dpctl.c
b/utilities/dpctl.c
index 60c5f189e3fa7115b88f37d5583154912c9d1473..94283c732027cb1d5bde82be6511e5725f94286d 100644
(file)
--- a/
utilities/dpctl.c
+++ b/
utilities/dpctl.c
@@
-506,7
+506,7
@@
do_status(const struct settings *s UNUSED, int argc, char *argv[])
ofp_fatal(0, "bad reply");
}
- fwrite(reply + 1, b->size, 1, stdout);
+ fwrite(reply + 1, b->size
- sizeof *reply
, 1, stdout);
}
static void