about summary refs log tree commit diff
path: root/mmime.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-09-05 14:20:55 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-09-05 14:20:55 +0200
commit472a74b75b598e38856d8f8ad9e71f355b7538c6 (patch)
tree9c5a6baee45abbbc884c52956335ef9df34ce020 /mmime.c
parent3167a7a2d35173414fa1b333db4908ac140c1c4d (diff)
downloadmblaze-472a74b75b598e38856d8f8ad9e71f355b7538c6.tar.gz
mblaze-472a74b75b598e38856d8f8ad9e71f355b7538c6.tar.xz
mblaze-472a74b75b598e38856d8f8ad9e71f355b7538c6.zip
use getdelim instead of getline
Avoids weird macros to build on FreeBSD.
Diffstat (limited to 'mmime.c')
-rw-r--r--mmime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mmime.c b/mmime.c
index d6897a8..788f4bf 100644
--- a/mmime.c
+++ b/mmime.c
@@ -273,7 +273,7 @@ gen_build()
 	int intext = 0;
 
 	while (1) {
-		int read = getline(&line, &linelen, stdin);
+		int read = getdelim(&line, &linelen, '\n', stdin);
 		if (read == -1) {
 			if (feof(stdin))
 				break;