summaryrefslogtreecommitdiff
path: root/modules/pam_mail
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2005-04-19 07:37:50 +0000
committerTomas Mraz <tm@t8m.info>2005-04-19 07:37:50 +0000
commit5fd4e6dd66443119070b41c226809d263a6d0d23 (patch)
tree0e790f908bf83d695ecf684f214743bcdd720dff /modules/pam_mail
parent9c459446c2424d46622e95e4d54280fee0ef9607 (diff)
Relevant BUGIDs:
Purpose of commit: bugfix Commit summary: --------------- Various cleanups and minor bugfixes by Steve Grubb.
Diffstat (limited to 'modules/pam_mail')
-rw-r--r--modules/pam_mail/pam_mail.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pam_mail/pam_mail.c b/modules/pam_mail/pam_mail.c
index 2c4b641a..77dae21d 100644
--- a/modules/pam_mail/pam_mail.c
+++ b/modules/pam_mail/pam_mail.c
@@ -211,6 +211,8 @@ static int get_folder(pam_handle_t *pamh, int ctrl,
}
/* put folder together */
+
+ hashcount = hashcount < strlen(user) ? hashcount : strlen(user);
if (ctrl & PAM_HOME_MAIL) {
folder = malloc(sizeof(MAIL_FILE_FORMAT)