about summary refs log tree commit diff
path: root/mmime.c
diff options
context:
space:
mode:
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;