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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user