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:23 +0000 (13:08 -0800)
commitc5cd317a53fa4f29ab39ee364a5151f7b700ee8d
tree2443c0c1e55716389953b44d4fdbfe791725e944
parent4675d8759d28bcc6971a76cf3e36fa4ee8e40650
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