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:12 +0000 (13:08 -0800)
commitcfc9268cabf32b5a70cc27988961aa238b8d1a27
treeaf42dcff6cf2428f98cc9f214b0928c78c750cff
parent30c42b95a67a00faf1b8734d5a9a0bcad6556d07
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