Commit f73a0707 f73a07073ac2c6b08315371a5b92352a81c0c3cc by Sergey Poznyakoff

Bugfix.

* mailbox/url.c (_url_path_default): Fix improper use of
sizeof (a typo, probably).
1 parent d6d78fad
...@@ -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
......