]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use isc__strerror instead of strerror_r in v9_11 branch
authorOndřej Surý <ondrej@sury.org>
Fri, 21 Dec 2018 08:26:50 +0000 (09:26 +0100)
committerOndřej Surý <ondrej@sury.org>
Fri, 21 Dec 2018 08:26:50 +0000 (09:26 +0100)
lib/isc/mem.c

index 49b61c994caef9c5d7bab13fe8d47168f704e4ba..64cbe8cf788ce46c7edaba68c03d88bd1d071d62 100644 (file)
@@ -898,7 +898,7 @@ internal_memalloc(void *arg, size_t size) {
 
        if (ptr == NULL && size != 0) {
                char strbuf[ISC_STRERRORSIZE];
-               strerror_r(errno, strbuf, sizeof(strbuf));
+               isc__strerror(errno, strbuf, sizeof(strbuf));
                isc_error_fatal(__FILE__, __LINE__, "malloc failed: %s", strbuf);
        }