sflow_agent: Use snprintf() in place of sprintf().
authorBen Pfaff <blp@nicira.com>
Tue, 31 Jan 2012 17:39:28 +0000 (09:39 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 31 Jan 2012 21:08:42 +0000 (13:08 -0800)
commit833aa7f8a376b274a6e50bbf2323d6ae4a25914f
treece251fce519d6604f6701431bc0d0a9f2973d888
parent45838d33779f8b590c6b1ab8a78d77998f82e24d
sflow_agent: Use snprintf() in place of sprintf().

These functions use sprintf() into a 1000-byte buffer.  It appears to me
that the strings they format are either short, fixed-length strings or the
output of strerror(), neither of which should ordinarily overflow.
However, using snprintf() cannot hurt.

Launchpad bug #914160.
Reported-by: Matthias Klose <doko@ubuntu.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/sflow_agent.c