X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fback-shell%2Fresult.c;h=56cf0019bbedad327adb547f8e9c5e14999b527b;hb=4a107089d82ecdaca788fc6ecdef34d3d4fc19df;hp=1a749eb17adecf272d5ed2226570a630dff78d90;hpb=ec6a663820b7660f8c6f572343428ea0299b0f1e;p=openldap diff --git a/servers/slapd/back-shell/result.c b/servers/slapd/back-shell/result.c index 1a749eb17a..56cf0019bb 100644 --- a/servers/slapd/back-shell/result.c +++ b/servers/slapd/back-shell/result.c @@ -2,7 +2,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2004 The OpenLDAP Foundation. + * Copyright 1998-2005 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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; }