Bugfix.
* mailbox/url.c (_url_path_default): Fix improper use of sizeof (a typo, probably).
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -952,7 +952,7 @@ mu_url_init (mu_url_t url, int port, const char *scheme) | ... | @@ -952,7 +952,7 @@ mu_url_init (mu_url_t url, int port, const char *scheme) |
952 | static char * | 952 | static char * |
953 | _url_path_default (const char *spooldir, const char *user, int unused) | 953 | _url_path_default (const char *spooldir, const char *user, int unused) |
954 | { | 954 | { |
955 | char *mbox = malloc (sizeof(spooldir) + strlen(user) + 2); | 955 | char *mbox = malloc (strlen (spooldir) + strlen (user) + 2); |
956 | if (!mbox) | 956 | if (!mbox) |
957 | errno = ENOMEM; | 957 | errno = ENOMEM; |
958 | else | 958 | else | ... | ... |
-
Please register or sign in to post a comment