diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2019-08-05 13:03:18 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2019-08-05 13:08:43 +0200 |
commit | 3e5c44d2b899278961e32e177e96173b5e1ddab7 (patch) | |
tree | 52bfea1fe178064558e9e2ff1ca19bbdbcc31a98 | |
parent | 728741e35ef93d7512a5934351c44bfaee7c1144 (diff) | |
download | fetchmail-3e5c44d2b899278961e32e177e96173b5e1ddab7.tar.gz fetchmail-3e5c44d2b899278961e32e177e96173b5e1ddab7.tar.bz2 fetchmail-3e5c44d2b899278961e32e177e96173b5e1ddab7.zip |
Fix format overflow warnings by printing IMAP tag as unsigned.
-rw-r--r-- | transact.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |