Allocate less memory

This commit is contained in:
David Bartley 2007-12-20 17:49:59 -05:00
parent 00f183800f
commit dfd96bd305
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ PAM_EXTERN int pam_sm_acct_mgmt(pam_handle_t* pamh, int flags, int argc, const c
}
/* create CSC request string */
WARN_ZERO( filter_csc = malloc(1000 + strlen(username_escaped)) )
WARN_ZERO( filter_csc = malloc(140 + strlen(username_escaped)) )
sprintf(filter_csc, "(&(uid=%s)(|(&(objectClass=member)(|(term=%s)(term=%s)(nonMemberTerm=%s)(nonMemberTerm=%s)))(!(objectClass=member))))", username_escaped, cur_term, prev_term, cur_term, prev_term);
/* issue CSC request */