fix printf format codes

pull/1/merge
Christian Neukirchen 8 years ago
parent b56f2a668b
commit bc9d79606b

@ -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;

@ -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);
}
}

@ -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);

Loading…
Cancel
Save