X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futil.c;h=6f435593f4db20aafaf2ab665cbbeae0a1e0aa70;hb=b2b5c2916e7850ad2f4d1a1b6c8aeb0f1ed49be6;hp=18d055a58e213e5026579b909e6e75ffe6337e77;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1;p=apps%2Fmadmutt.git diff --git a/imap/util.c b/imap/util.c index 18d055a..6f43559 100644 --- a/imap/util.c +++ b/imap/util.c @@ -148,7 +148,7 @@ int imap_parse_path (const char* path, IMAP_MBOX* mx) } if (n > 1) { - if (sscanf (tmp, ":%hd%127s", &(mx->account.port), tmp) >= 1) + if (sscanf (tmp, ":%hu%127s", &(mx->account.port), tmp) >= 1) mx->account.flags |= M_ACCT_PORT; if (sscanf (tmp, "/%s", tmp) == 1) { @@ -164,7 +164,7 @@ int imap_parse_path (const char* path, IMAP_MBOX* mx) } } -#ifdef USE_SSL +#if defined(USE_SSL) || defined(USE_GNUTLS) if (option (OPTIMAPFORCESSL)) mx->account.flags |= M_ACCT_SSL; #endif