From: Kurt Zeilenga Date: Mon, 26 Apr 2004 19:16:14 +0000 (+0000) Subject: Use AC_STRERROR_R X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~428 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bfd09a16a25d8a507ff9cd8b9c581a2188854c9f;p=openldap Use AC_STRERROR_R --- diff --git a/servers/slapd/back-shell/result.c b/servers/slapd/back-shell/result.c index 1a749eb17a..f73679faa7 100644 --- a/servers/slapd/back-shell/result.c +++ b/servers/slapd/back-shell/result.c @@ -49,6 +49,7 @@ read_and_send_results( int bsize, len; char *buf, *bp; char line[BUFSIZ]; + char ebuf[128]; /* read in the result and send it along */ buf = (char *) ch_malloc( BUFSIZ ); @@ -61,7 +62,7 @@ read_and_send_results( if ( errno == EINTR ) continue; Debug( LDAP_DEBUG_ANY, "shell: fgets failed: %s (%d)\n", - strerror(errno), errno, 0 ); + AC_STRERROR_R(errno, ebuf, sizeof ebuf), errno, 0 ); break; }