From: Sebastian Harl Date: Wed, 10 Oct 2007 18:36:53 +0000 (+0200) Subject: ipvs plugin: Use sstrerror() instead of strerror(). X-Git-Tag: collectd-4.2.0~35 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=dcfa1b18ba29a8c340498528a4bb56f030c1c7af;p=collectd.git ipvs plugin: Use sstrerror() instead of strerror(). D'oh... Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/ipvs.c b/src/ipvs.c index 3c6aa5c1..f2f40b45 100644 --- a/src/ipvs.c +++ b/src/ipvs.c @@ -73,6 +73,7 @@ static struct ip_vs_get_dests *ipvs_get_dests (struct ip_vs_service_entry *); static const char *ipvs_strerror (int err) { + char errbuf[1024]; unsigned int i; struct { @@ -93,7 +94,7 @@ static const char *ipvs_strerror (int err) && (table[i].err == err)) return table[i].message; } - return strerror (err); + return sstrerror (err, errbuf, sizeof (errbuf)); } /* ipvs_strerror */ static struct ip_vs_get_services *ipvs_get_services (void)