summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-30 03:07:52 +0000
committerJim Meyering <jim@meyering.net>1998-08-30 03:07:52 +0000
commit49b81671fd7df7d3700997aa19a46e8858e978e5 (patch)
tree232537737663eca2677c72ae5b3926bd68172d1d /src
parent38429fe66100836d91a84e8f575e49da6958093d (diff)
downloadcoreutils-49b81671fd7df7d3700997aa19a46e8858e978e5.tar.xz
(longopts): Don't assume ASCII.
Diffstat (limited to 'src')
-rw-r--r--src/cut.c4
1 files changed, 2 insertions, 2 deletions
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'