From a104e1c2c3f67c3532333bb9651d3e7f879870f3 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 21 Nov 2013 16:29:19 +0100 Subject: use strerror_r instead of strerror. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- proxy/src/gp_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/gp_util.c b/proxy/src/gp_util.c index 1698f74..aad8875 100644 --- a/proxy/src/gp_util.c +++ b/proxy/src/gp_util.c @@ -69,6 +69,7 @@ char *gp_getenv(const char *name) char *gp_strerror(int errnum) { - return strerror(errnum); + char buf[256]; + return strerror_r(errnum, buf, 256); } -- cgit