From: Vincent Lefevre Date: Mon, 12 Apr 2004 20:39:06 +0000 (+0000) Subject: #1803: Short int format, short unsigned int arg. X-Git-Tag: mutt-1-5-15-rel~186 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e44ad56e82c0365557edd6b697c29666f28c87d7;p=mutt #1803: Short int format, short unsigned int arg. --- diff --git a/imap/util.c b/imap/util.c index 18d055a5..e5863d83 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) {