X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=imap%2Futil.c;h=6f435593f4db20aafaf2ab665cbbeae0a1e0aa70;hb=b2b5c2916e7850ad2f4d1a1b6c8aeb0f1ed49be6;hp=ec26d65f83deae9d500a64c9a9bc5d410e4bb2ee;hpb=faed98ab64dd3cbd29e674141cd074d6c9f8909c;p=apps%2Fmadmutt.git diff --git a/imap/util.c b/imap/util.c index ec26d65..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) {