ofp-util: Don't return static data in ofputil_packet_in_reason_to_string().
authorBen Pfaff <blp@nicira.com>
Tue, 16 Apr 2013 22:13:21 +0000 (15:13 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 10 Jun 2013 18:13:54 +0000 (11:13 -0700)
commit5014a89d9388d800ee5909acbb23705bb93ac1fc
treed09d1d2540910b4c9cee017b29a9da827c25c12b
parente6603631d3c101620882adb29e34cb09b5234291
ofp-util: Don't return static data in ofputil_packet_in_reason_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>
lib/ofp-actions.c
lib/ofp-print.c
lib/ofp-util.c
lib/ofp-util.h