From: Howard Chu Date: Mon, 13 Jul 2009 08:28:11 +0000 (+0000) Subject: Cleanup sss result string X-Git-Tag: ACLCHECK_0~438 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3f39c7941105a75fec706ff83cc667bd6ae383fb;p=openldap Cleanup sss result string --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 4e63da0824..0728b68494 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -1941,8 +1941,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 );