From: Jim Meyering Date: Thu, 7 Aug 2003 09:33:48 +0000 (+0000) Subject: Include getndelim2.h rather than getdelim2.h. X-Git-Tag: CPPI-1_11~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00f84b1e6488992a7a5d8f970875db085c1c9963;p=thirdparty%2Fcoreutils.git Include getndelim2.h rather than getdelim2.h. (cut_fields): Invoke getndelim2 rather than getdelim2. --- diff --git a/src/cut.c b/src/cut.c index e84d86131f..d1af112853 100644 --- a/src/cut.c +++ b/src/cut.c @@ -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))