Commit 37cd336d 37cd336d8bb2a4096a59bb8867b73d26867da8fd by Sergey Poznyakoff

(mailbox_folder_create): Bugfix, strncmp(fname...

1 parent afa90f0a
......@@ -53,7 +53,7 @@ mailbox_folder_create (mu_folder_t *pfolder, const char *name)
return ENOMEM;
p = strrchr (fname, '/'); /* FIXME: Is this always appropriate? */
if (p && !(mu_is_proto (fname) && strncmp (p, "file:", 5)))
if (p && !(mu_is_proto (fname) && strncmp (fname, "file:", 5)))
*p = 0;
rc = mu_folder_create (pfolder, fname);
free (fname);
......