about summary refs log tree commit diff
path: root/mseq.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 /mseq.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 'mseq.c')
-rw-r--r--mseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mseq.c b/mseq.c
index 70ed1b2..00ec844 100644
--- a/mseq.c
+++ b/mseq.c
@@ -205,7 +205,7 @@ stdinmode()
 		outfile = stdout;
 	}
 
-	while ((rd = getline(&line, &linelen, stdin)) != -1) {
+	while ((rd = getdelim(&line, &linelen, '\n', stdin)) != -1) {
 		if (line[rd-1] == '\n')
 			line[rd-1] = 0;