Fixed loading account plug-ins on MacOS X

This commit is contained in:
Pierre Pronchery 2012-08-25 14:18:36 +00:00
parent 4716f3ec4e
commit 2f8aed8981

View File

@ -601,7 +601,7 @@ static int _new_accounts(Mailer * mailer)
|| strcmp(ext, &de->d_name[
len - sizeof(ext) + 1]) != 0)
continue;
de->d_name[len - 3] = '\0';
de->d_name[len - sizeof(ext) + 1] = '\0';
if((p = realloc(mailer->available, (mailer->available_cnt + 1)
* sizeof(*p))) == NULL)
{