From: Quanah Gibson-Mount Date: Wed, 22 Jul 2009 21:42:40 +0000 (+0000) Subject: Cleanup sss result string X-Git-Tag: OPENLDAP_REL_ENG_2_4_18~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=03dcd68e1e06680086b52212d201248e836b08c1;p=openldap Cleanup sss result string --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 56b669b562..1715aefee0 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -1917,8 +1917,8 @@ print_sss( LDAP *ld, LDAPControl *ctrl ) rc = ldap_parse_sortresponse_control( ld, ctrl, &err, &attr ); if ( rc == LDAP_SUCCESS ) { char buf[ BUFSIZ ]; - rc = snprintf( buf, sizeof(buf), "(%d) %s %s", - err, ldap_err2string(err), attr ? attr : "" ); + rc = snprintf( buf, sizeof(buf), "(%d) %s%s%s", + err, ldap_err2string(err), attr ? " " : "", attr ? attr : "" ); tool_write_ldif( ldif ? LDIF_PUT_COMMENT : LDIF_PUT_VALUE, "sortResult", buf, rc );