/[mailutils]/mailutils/imap4d/select.c
ViewVC logotype

Diff of /mailutils/imap4d/select.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.16 by alainm, Fri Oct 5 02:44:28 2001 UTC revision 1.17 by gray, Tue Jan 15 21:52:46 2002 UTC
# Line 62  imap4d_select0 (struct imap4d_command *c Line 62  imap4d_select0 (struct imap4d_command *c
62        pw = getpwuid (getuid ());        pw = getpwuid (getuid ());
63        if (pw)        if (pw)
64          {          {
65            mailbox_name  = calloc (strlen (_PATH_MAILDIR) + 1            mailbox_name = malloc (strlen (maildir) + strlen (pw->pw_name) + 1);
66                                    + strlen (pw->pw_name) + 1, 1);            if (!mailbox_name)
67            sprintf (mailbox_name, "%s/%s", _PATH_MAILDIR, pw->pw_name);              {
68                  syslog (LOG_ERR, "Not enough memory");
69                  return util_finish (command, RESP_NO, "Not enough memory");
70                }
71              sprintf (mailbox_name, "%s%s", maildir, pw->pw_name);
72          }          }
73        else        else
74          mailbox_name = strdup ("/dev/null");          mailbox_name = strdup ("/dev/null");

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26