about summary refs log tree commit diff
path: root/mexport.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 /mexport.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 'mexport.c')
-rw-r--r--mexport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mexport.c b/mexport.c
index 2e06890..7c31609 100644
--- a/mexport.c
+++ b/mexport.c
@@ -62,7 +62,7 @@ export(char *file)
 
 	while (1) {
 		errno = 0;
-		ssize_t rd = getline(&line, &linelen, infile);
+		ssize_t rd = getdelim(&line, &linelen, '\n', infile);
 		if (rd == -1) {
 			if (errno == 0)
 				break;