]> granicus.if.org Git - mutt/commitdiff
#1803: Short int format, short unsigned int arg.
authorVincent Lefevre <vincent@vinc17.net>
Mon, 12 Apr 2004 20:39:06 +0000 (20:39 +0000)
committerVincent Lefevre <vincent@vinc17.net>
Mon, 12 Apr 2004 20:39:06 +0000 (20:39 +0000)
imap/util.c

index 18d055a58e213e5026579b909e6e75ffe6337e77..e5863d8325f0042cf25389bebe2074622a31ff8b 100644 (file)
@@ -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)
       {