diff options
author | Jim Meyering <jim@meyering.net> | 1998-08-30 02:33:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-08-30 02:33:45 +0000 |
commit | b6f403c60602dea1328c2e6d8f5f8cd1292dc19b (patch) | |
tree | 541dcc5babbd502e9e40748bf8596d6cea05a0a8 /src/touch.c | |
parent | fa59cde3fe964d805a1b679fd8065fc7fbf8f9e2 (diff) | |
download | coreutils-b6f403c60602dea1328c2e6d8f5f8cd1292dc19b.tar.gz |
Don't assume ASCII in getopt arg handling.
Diffstat (limited to 'src/touch.c')
-rw-r--r-- | src/touch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/touch.c b/src/touch.c index 2c7b05a7e..56065c0d3 100644 --- a/src/touch.c +++ b/src/touch.c @@ -96,7 +96,7 @@ static int show_version; static struct option const longopts[] = { - {"time", required_argument, 0, 130}, + {"time", required_argument, 0, CHAR_MAX + 1}, {"no-create", no_argument, 0, 'c'}, {"date", required_argument, 0, 'd'}, {"file", required_argument, 0, 'r'}, @@ -294,7 +294,7 @@ main (int argc, char **argv) date_set++; break; - case 130: + case CHAR_MAX + 1: i = argmatch (optarg, time_args); if (i < 0) { |