From 03dcd68e1e06680086b52212d201248e836b08c1 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount <quanah@openldap.org> Date: Wed, 22 Jul 2009 21:42:40 +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 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 ); -- GitLab