odp-util: Avoid returning static data in ovs_key_attr_to_string().
authorBen Pfaff <blp@nicira.com>
Mon, 15 Apr 2013 22:40:21 +0000 (15:40 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 10 Jun 2013 17:59:59 +0000 (10:59 -0700)
commite6603631d3c101620882adb29e34cb09b5234291
tree83a1be84a9cdf188ad9c85ad5cf0697105ccab02
parente956d63bd5195beb03e993c8b8ddb4e74d428f29
odp-util: Avoid returning static data in ovs_key_attr_to_string().

Returning a static data buffer makes code more brittle and definitely
not thread-safe, so this commit switches to using a caller-provided
buffer instead.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ansis Atteka <aatteka@nicira.com>
lib/odp-util.c