Merge pull request #6891 from poettering/read-line

add read_line() helper as bounded getline() and make use of it at some places
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-09-24 20:51:01 +02:00
committed by GitHub
8 changed files with 331 additions and 37 deletions
+2
View File
@@ -101,3 +101,5 @@ int link_tmpfile(int fd, const char *path, const char *target);
int read_nul_string(FILE *f, char **ret);
int mkdtemp_malloc(const char *template, char **ret);
int read_line(FILE *f, size_t limit, char **ret);