diff options
author | Jim Meyering <jim@meyering.net> | 1996-11-04 00:22:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-11-04 00:22:26 +0000 |
commit | 25abc2a9b4cdb39916bb5438d2030f985f813885 (patch) | |
tree | 8b3917d88ded8fad0071d0359b5b958aaf7cc2d0 | |
parent | 70196747af629536842998272e2f7945f35dbb61 (diff) | |
download | coreutils-25abc2a9b4cdb39916bb5438d2030f985f813885.tar.xz |
(recover_mode): Fail also if there are too many fields. From Karl Heuer.
-rw-r--r-- | src/stty.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stty.c b/src/stty.c index f666a9508..243343dae 100644 --- a/src/stty.c +++ b/src/stty.c @@ -1510,6 +1510,11 @@ recover_mode (char *arg, struct termios *mode) mode->c_cc[i] = chr; arg += n; } + + /* Fail if there are too many fields. */ + if (*arg != '\0') + return 0; + return 1; } |