From 49b81671fd7df7d3700997aa19a46e8858e978e5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 30 Aug 1998 03:07:52 +0000 Subject: (longopts): Don't assume ASCII. --- src/cut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cut.c b/src/cut.c index 6b6726b70..992d75e48 100644 --- a/src/cut.c +++ b/src/cut.c @@ -181,7 +181,7 @@ static struct option const longopts[] = {"fields", required_argument, 0, 'f'}, {"delimiter", required_argument, 0, 'd'}, {"only-delimited", no_argument, 0, 's'}, - {"output-delimiter", required_argument, 0, 14}, + {"output-delimiter", required_argument, 0, CHAR_MAX + 1}, {"help", no_argument, &show_help, 1}, {"version", no_argument, &show_version, 1}, {0, 0, 0, 0} @@ -739,7 +739,7 @@ main (int argc, char **argv) delim_specified = 1; break; - case 14: + case CHAR_MAX + 1: /* Interpret --output-delimiter='' to mean `use the NUL byte as the delimiter.' */ output_delimiter_length = (optarg[0] == '\0' -- cgit v1.2.3-70-g09d2