[collectd] [PATCH] ipvs plugin: Use sstrerror() instead of strerror().

Sebastian Harl sh at tokkee.org
Wed Oct 10 20:36:53 CEST 2007


D'oh...

Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
 src/ipvs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/ipvs.c b/src/ipvs.c
index 3c6aa5c..f2f40b4 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)
-- 
1.5.3.3.131.g34c6d-dirty

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071010/58583c8e/attachment.pgp 


More information about the collectd mailing list