From 3e5c44d2b899278961e32e177e96173b5e1ddab7 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 5 Aug 2019 13:03:18 +0200 Subject: Fix format overflow warnings by printing IMAP tag as unsigned. --- transact.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transact.c') diff --git a/transact.c b/transact.c index 1f74a73c..f73dd0da 100644 --- a/transact.c +++ b/transact.c @@ -52,9 +52,9 @@ /* session variables initialized in init_transact() */ int suppress_tags = FALSE; /**< emit tags in the protocol? */ char tag[TAGLEN]; /**< buffer for the tag */ -static int tagnum; /**< local counter for the tag */ +static unsigned int tagnum; /**< local counter for the tag */ /** Macro to generate the tag and store it in #tag. */ -#define GENSYM (sprintf(tag, "A%04d", ++tagnum % TAGMOD), tag) +#define GENSYM (sprintf(tag, "A%04u", ++tagnum % TAGMOD), tag) static const struct method *protocol; /**< description of the protocol used for the current poll */ char shroud[PASSWORDLEN*2+3]; /**< string to shroud in debug output */ -- cgit v1.2.3