]> git.sur5r.net Git - openldap/commitdiff
Use AC_STRERROR_R
authorKurt Zeilenga <kurt@openldap.org>
Mon, 26 Apr 2004 19:16:14 +0000 (19:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 26 Apr 2004 19:16:14 +0000 (19:16 +0000)
servers/slapd/back-shell/result.c

index 1a749eb17adecf272d5ed2226570a630dff78d90..f73679faa7b923b98b8f453ae8657cece7a7d6a2 100644 (file)
@@ -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;
                }