mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
cut: use MCEL_LEN_MAX rather than MB_LEN_MAX
* src/cut.c: We use the mcel interface to populate these arrays, so restrict to the mcel supported max. This is more efficient as generally stateful encodings are not used or supported.
This commit is contained in:
1 parent
38cf97c1ff
commit
dc723665b5
1 file changed
+2
-2
@@ -90,7 +90,7 @@ static bool complement;
|
||||
static mcel_t delim_mcel;
|
||||
|
||||
/* The delimiter bytes. */
|
||||
static char delim_bytes[MB_LEN_MAX];
|
||||
static char delim_bytes[MCEL_LEN_MAX];
|
||||
|
||||
/* The delimiter for each line/record. */
|
||||
static unsigned char line_delim = '\n';
|
||||
@@ -103,7 +103,7 @@ static size_t output_delimiter_length;
|
||||
static char *output_delimiter_string;
|
||||
|
||||
/* The output delimiter string contents, if the default. */
|
||||
static char output_delimiter_default[MB_LEN_MAX];
|
||||
static char output_delimiter_default[MCEL_LEN_MAX];
|
||||
|
||||
/* True if we have ever read standard input. */
|
||||
static bool have_read_stdin;
|
||||
|
||||
Reference in new issue
Block a user