From dcfa1b18ba29a8c340498528a4bb56f030c1c7af Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 10 Oct 2007 20:36:53 +0200 Subject: [PATCH] ipvs plugin: Use sstrerror() instead of strerror(). D'oh... Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- src/ipvs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.30.2