aboutsummaryrefslogtreecommitdiffstats
path: root/transact.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2019-08-05 13:03:18 +0200
committerMatthias Andree <matthias.andree@gmx.de>2019-08-05 13:08:43 +0200
commit3e5c44d2b899278961e32e177e96173b5e1ddab7 (patch)
tree52bfea1fe178064558e9e2ff1ca19bbdbcc31a98 /transact.c
parent728741e35ef93d7512a5934351c44bfaee7c1144 (diff)
downloadfetchmail-3e5c44d2b899278961e32e177e96173b5e1ddab7.tar.gz
fetchmail-3e5c44d2b899278961e32e177e96173b5e1ddab7.tar.bz2
fetchmail-3e5c44d2b899278961e32e177e96173b5e1ddab7.zip
Fix format overflow warnings by printing IMAP tag as unsigned.
Diffstat (limited to 'transact.c')
-rw-r--r--transact.c4
1 files changed, 2 insertions, 2 deletions
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 */