talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 94fb81e08689930bb236c163d30d7bb65dfac5f4
parent 20ece29edf92ee9aa6e8e80a4cec0842b162108c
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sun, 25 Sep 2016 00:19:50 +0200

Fix absolute path detection in mh_create_tree() on Windows.

Diffstat:
Msrc/mh.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mh.c b/src/mh.c @@ -792,7 +792,7 @@ static gint mh_create_tree(Folder *folder) #ifdef G_OS_UNIX if (*rootpath == '/') { #elif defined G_OS_WIN32 - if (g_ascii_isalpha(*rootpath) && !strncmp(rootpath + 1, "\:", 2)) { + if (g_ascii_isalpha(*rootpath) && !strncmp(rootpath + 1, ":\\", 2)) { #endif /* Folder path is absolute. */ rootpath = g_strdup(rootpath);