diff options
Diffstat (limited to 'editors/sed.c')
-rw-r--r-- | editors/sed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editors/sed.c b/editors/sed.c index 32911f8..f858845 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -1028,7 +1028,7 @@ static void process_files(void) if (rfile) { char *line; - while ((line = xmalloc_getline(rfile)) + while ((line = xmalloc_fgetline(rfile)) != NULL) append(line); xprint_and_close_file(rfile); @@ -1273,7 +1273,7 @@ int sed_main(int argc ATTRIBUTE_UNUSED, char **argv) char *line; FILE *cmdfile; cmdfile = xfopen(opt_f->data, "r"); - while ((line = xmalloc_getline(cmdfile)) != NULL) { + while ((line = xmalloc_fgetline(cmdfile)) != NULL) { add_cmd(line); free(line); } |