ofproto: Always terminate OpenFlow description strings
authorJustin Pettit <jpettit@nicira.com>
Sat, 30 Jan 2010 00:43:30 +0000 (16:43 -0800)
committerJustin Pettit <jpettit@nicira.com>
Sat, 20 Feb 2010 10:22:30 +0000 (02:22 -0800)
commit5a719c38c219b46a3f9c263ceae268a70071c03c
tree67b4370b7c0afea4cb7216adf304306fe1228c17
parent0c30c8f1c419811cbb5fdc441af95ba3f763f0ff
ofproto: Always terminate OpenFlow description strings

If an OpenFlow description was too long, it would not be properly
truncated with a final null character.  In addition to properly terminating
the string, this set of changes prints a warning if a description is too
long and standardizes on a naming standard for description variables.
ofproto/ofproto.c
ofproto/ofproto.h