diff options
-rw-r--r-- | scan.c | 2 | ||||
-rw-r--r-- | thread.c | 2 | ||||
-rw-r--r-- | unmime.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/scan.c b/scan.c index 3ce2a8c..7fa58d0 100644 --- a/scan.c +++ b/scan.c @@ -113,7 +113,7 @@ oneline(char *file) } blaze822_decode_rfc2047(subjdec, subj, sizeof subjdec - 1, "UTF-8"); - printf("%c%c %-3d %-10s ", flag1, flag2, lineno, date); + printf("%c%c %-3ld %-10s ", flag1, flag2, lineno, date); u8putstr(stdout, fromdec, 17, 1); printf(" "); int z; diff --git a/thread.c b/thread.c index 0b89df2..c5634c7 100644 --- a/thread.c +++ b/thread.c @@ -63,7 +63,7 @@ mid(struct message *msg) // invent new message-id for internal tracking static long i; char buf[32]; - snprintf(buf, sizeof buf, "thread.%08d@localhost", ++i); + snprintf(buf, sizeof buf, "thread%08ld@localhost", ++i); return strdup(buf); } } diff --git a/unmime.c b/unmime.c index 8c0c147..596ad9a 100644 --- a/unmime.c +++ b/unmime.c @@ -23,7 +23,7 @@ recmime(struct message *msg, int depth) size_t bodylen; if (blaze822_mime_body(msg, &ct, &body, &bodylen, &bodychunk)) { - printf("%*.sbody %s len %d\n", depth*2, "", ct, bodylen); + printf("%*.sbody %s len %zd\n", depth*2, "", ct, bodylen); if (strncmp(ct, "multipart/", 10) == 0) { while (blaze822_multipart(msg, &imsg)) recmime(imsg, depth+1); |