diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-29 17:25:41 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-29 17:25:41 -0800 |
commit | f692694b99319ef1f534ea29f001922656402cdf (patch) | |
tree | d571e437f4ac8b96f1575d3a9732f2354c0065ae /source3/smbd | |
parent | b05ffb50652c00c721dc085ffd0938e9e6aa019b (diff) | |
download | samba-f692694b99319ef1f534ea29f001922656402cdf.tar.gz samba-f692694b99319ef1f534ea29f001922656402cdf.tar.bz2 samba-f692694b99319ef1f534ea29f001922656402cdf.zip |
Remove PSTRING_LEN from smbd/ nmbd/.
Remove pstring from libsmb/clidfs.c except for a nasty
hack (that will be removed when pstrings are gone from
client/).
Jeremy.
(This used to be commit cc257b71d13daa47e6f2315d0f07a60eb4aaeca6)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 7bba458218..75f05dea67 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -402,14 +402,14 @@ void add_session_user(const char *user) len_session_userlist) ) { char *newlist; - if (len_session_userlist > 128 * PSTRING_LEN) { + if (len_session_userlist > 128 * 1024) { DEBUG(3,("add_session_user: session userlist already " "too large.\n")); return; } newlist = (char *)SMB_REALLOC_KEEP_OLD_ON_ERROR( session_userlist, - len_session_userlist + PSTRING_LEN ); + len_session_userlist + 1024 ); if( newlist == NULL ) { DEBUG(1,("Unable to resize session_userlist\n")); return; @@ -418,7 +418,7 @@ void add_session_user(const char *user) *newlist = '\0'; } session_userlist = newlist; - len_session_userlist += PSTRING_LEN; + len_session_userlist += 1024; } safe_strcat(session_userlist," ",len_session_userlist-1); |