From 3f39c7941105a75fec706ff83cc667bd6ae383fb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 13 Jul 2009 08:28:11 +0000 Subject: [PATCH] Cleanup sss result string --- clients/tools/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); -- 2.39.5