From db9dff1c16de0464a14e971fa3ed1f44209f62b4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 28 Feb 2018 17:27:22 +0000 Subject: [PATCH] [Minor] Fix broken usage of strerror_r --- contrib/hiredis/hiredis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/hiredis/hiredis.h b/contrib/hiredis/hiredis.h index 62a903c0a..153bfd7a6 100644 --- a/contrib/hiredis/hiredis.h +++ b/contrib/hiredis/hiredis.h @@ -94,7 +94,7 @@ /* "bad" GNU strerror_r we need to clean up after. */ #define __redis_strerror_r(errno, buf, len) \ do { \ - char *err_str = strerror_r((errno), (buf), (len)); \ + char *err_str = strerror((errno)); \ /* If return value _isn't_ the start of the buffer we passed in, \ * then GNU strerror_r returned an internal static buffer and we \ * need to copy the result into our private buffer. */ \ -- 2.39.5