summaryrefslogtreecommitdiff
path: root/mailbox/mbx_imap.c
diff options
context:
space:
mode:
Diffstat (limited to 'mailbox/mbx_imap.c')
-rw-r--r--mailbox/mbx_imap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mailbox/mbx_imap.c b/mailbox/mbx_imap.c
index 34331ac26..5c25709a8 100644
--- a/mailbox/mbx_imap.c
+++ b/mailbox/mbx_imap.c
@@ -2178,9 +2178,11 @@ add_number (char **pset, size_t start, size_t end)
if (start == 0)
*buf = '\0';
else if (start != end)
- snprintf (buf, sizeof buf, "%d:%d", start, end);
+ snprintf (buf, sizeof buf, "%lu:%lu",
+ (unsigned long) start,
+ (unsigned long) end);
else
- snprintf (buf, sizeof buf, "%d", start);
+ snprintf (buf, sizeof buf, "%lu", (unsigned long) start);
if (set_len)
tmp = realloc (set, set_len + strlen (buf) + 2 /* null and comma */);

Return to:

Send suggestions and report system problems to the System administrator.