summaryrefslogtreecommitdiff
path: root/Mailbox.c
diff options
context:
space:
mode:
Diffstat (limited to 'Mailbox.c')
-rw-r--r--Mailbox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailbox.c b/Mailbox.c
index d7f7fb8..4d263b6 100644
--- a/Mailbox.c
+++ b/Mailbox.c
@@ -541,10 +541,10 @@ static void GetMailFile (MailboxWidget w)
}
#endif
if ((mailpath = getenv("MAIL"))) {
- w->mailbox.filename = (String) XtMalloc (strlen (mailpath) + 1);
+ w->mailbox.filename = XtMalloc (strlen (mailpath) + 1);
strcpy (w->mailbox.filename, mailpath);
} else {
- w->mailbox.filename = (String) XtMalloc (strlen (MAILBOX_DIRECTORY) + 1
+ w->mailbox.filename = XtMalloc (strlen (MAILBOX_DIRECTORY) + 1
+ strlen (username) + 1);
strcpy (w->mailbox.filename, MAILBOX_DIRECTORY);
strcat (w->mailbox.filename, "/");