From: Ralf Wildenhues Date: Wed, 26 Jan 2005 12:36:36 +0000 (+0000) Subject: Fix some printf arguments. X-Git-Tag: mutt-1-5-7-rel~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a294b228a27971a8428088a2605f56034dd8176;p=mutt Fix some printf arguments. --- diff --git a/imap/command.c b/imap/command.c index 1679c5e6..e7e70443 100644 --- a/imap/command.c +++ b/imap/command.c @@ -395,7 +395,7 @@ static int cmd_handle_untagged (IMAP_DATA* idata) /* cmd_make_sequence: make a tag suitable for starting an IMAP command */ static void cmd_make_sequence (IMAP_DATA* idata) { - snprintf (idata->cmd.seq, sizeof (idata->cmd.seq), "a%04d", idata->seqno++); + snprintf (idata->cmd.seq, sizeof (idata->cmd.seq), "a%04u", idata->seqno++); if (idata->seqno > 9999) idata->seqno = 0; diff --git a/imap/message.c b/imap/message.c index 4f5855fc..8e7a99c8 100644 --- a/imap/message.c +++ b/imap/message.c @@ -263,7 +263,7 @@ int imap_fetch_message (MESSAGE *msg, CONTEXT *ctx, int msgno) * command handler */ h->active = 0; - snprintf (buf, sizeof (buf), "UID FETCH %d %s", HEADER_DATA(h)->uid, + snprintf (buf, sizeof (buf), "UID FETCH %u %s", HEADER_DATA(h)->uid, (mutt_bit_isset (idata->capabilities, IMAP4REV1) ? (option (OPTIMAPPEEK) ? "BODY.PEEK[]" : "BODY[]") : "RFC822"));