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:34 +0000 (13:08 -0800)
commit6d84ff1021c019e49db0525224f0f9f9983473d2
tree63cfb45504d29ffc258deb621aa227ea246c6b27
parentdc645be138e74873f310e3d2eaf8fd1ae9a4e2bd
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