]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix broken usage of strerror_r
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Feb 2018 17:27:22 +0000 (17:27 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 28 Feb 2018 17:35:16 +0000 (17:35 +0000)
contrib/hiredis/hiredis.h

index 62a903c0a32feae7c400b56c8921f1ea956b839e..153bfd7a63c2cf90388f6dc61253b0d28955d973 100644 (file)
@@ -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. */                 \