Commit 1080f72c 1080f72c46c54957078bd93a14a745699278c7c9 by Sergey Poznyakoff

(maildir_gethostname): Fixed a gross memory allocation bug.

1 parent 44bed5ec
......@@ -95,6 +95,7 @@ static struct info_map {
};
#define info_map_size (sizeof (info_map) / sizeof (info_map[0]))
/* FIXME: is not used */
static int
info_map_letter (int c)
{
......@@ -200,7 +201,7 @@ maildir_gethostname ()
{
char *q;
hp = malloc (strlen (hostname)) + s + 1;
hp = malloc (strlen (hostname) + s + 1);
for (p = hostname, q = hp; *p; p++)
switch (*p)
{
......