summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-14 18:21:07 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-14 18:21:07 +0200
commitbc9d79606b193fcf79a294c12590b258c25c5a0f (patch)
treeaccb479ff521928b54fd9f76c2da769c3a18d17b
parentb56f2a668bbbcb7d4956ce5c94c932be543420ee (diff)
downloadmblaze-bc9d79606b193fcf79a294c12590b258c25c5a0f.tar.gz
mblaze-bc9d79606b193fcf79a294c12590b258c25c5a0f.tar.xz
mblaze-bc9d79606b193fcf79a294c12590b258c25c5a0f.zip
fix printf format codes
-rw-r--r--scan.c2
-rw-r--r--thread.c2
-rw-r--r--unmime.c2
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);