diff options
author | Jim Meyering <jim@meyering.net> | 2003-08-07 09:33:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-08-07 09:33:48 +0000 |
commit | 00f84b1e6488992a7a5d8f970875db085c1c9963 (patch) | |
tree | d49cfcbcd637cef43ba67d7d2fe2bb1a09afe0f8 /src | |
parent | c71f78dad6c6c86ac840f56469bc90a41402759c (diff) | |
download | coreutils-00f84b1e6488992a7a5d8f970875db085c1c9963.tar.xz |
Include getndelim2.h rather than getdelim2.h.
(cut_fields): Invoke getndelim2 rather than getdelim2.
Diffstat (limited to 'src')
-rw-r--r-- | src/cut.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -31,7 +31,7 @@ #include "system.h" #include "error.h" -#include "getdelim2.h" +#include "getndelim2.h" #include "hash.h" #include "quote.h" #include "xstrndup.h" @@ -585,11 +585,11 @@ cut_fields (FILE *stream) { if (field_idx == 1 && buffer_first_field) { - int len; + ssize_t len; size_t n_bytes; - len = getdelim2 (&field_1_buffer, &field_1_bufsize, stream, - delim, '\n', 0); + len = getndelim2 (&field_1_buffer, &field_1_bufsize, SIZE_MAX, + stream, delim, '\n', 0); if (len < 0) { if (ferror (stream) || feof (stream)) |