projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ovsdb-idlc: Fix sizeof calculation in generated code.
[openvswitch]
/
lib
/
packets.c
diff --git
a/lib/packets.c
b/lib/packets.c
index 29c4e7e4a9e3a9bd9820d69fb9afb84f5d6ee8bb..5c51feb1f3d289490de750063c8e9d79214df822 100644
(file)
--- a/
lib/packets.c
+++ b/
lib/packets.c
@@
-23,7
+23,7
@@
bool
dpid_from_string(const char *s, uint64_t *dpidp)
{
bool
dpid_from_string(const char *s, uint64_t *dpidp)
{
- *dpidp = (strlen(s) == 1
2 && strspn(s, "0123456789abcdefABCDEF") == 12
+ *dpidp = (strlen(s) == 1
6 && strspn(s, "0123456789abcdefABCDEF") == 16
? strtoll(s, NULL, 16)
: 0);
return *dpidp != 0;
? strtoll(s, NULL, 16)
: 0);
return *dpidp != 0;