diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-03 21:31:16 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-07-03 21:31:16 +0200 |
| commit | d4e4fdb5ce5ccc067b3d35d877f7a7d978869517 (patch) | |
| tree | bac3e4a55fa72db0c67d377b90869b4d63e8c3c9 /shell/shell_common.c | |
| parent | 2e989ef232e35750df573898077dd356003705b2 (diff) | |
| download | busybox-w32-d4e4fdb5ce5ccc067b3d35d877f7a7d978869517.tar.gz busybox-w32-d4e4fdb5ce5ccc067b3d35d877f7a7d978869517.tar.bz2 busybox-w32-d4e4fdb5ce5ccc067b3d35d877f7a7d978869517.zip | |
fixes for bugs found by make_single_applets.sh
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/shell_common.c')
| -rw-r--r-- | shell/shell_common.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/shell_common.c b/shell/shell_common.c index 03b7d0b75..bf56f3d78 100644 --- a/shell/shell_common.c +++ b/shell/shell_common.c | |||
| @@ -405,9 +405,7 @@ shell_builtin_ulimit(char **argv) | |||
| 405 | */ | 405 | */ |
| 406 | GETOPT_RESET(); | 406 | GETOPT_RESET(); |
| 407 | 407 | ||
| 408 | argc = 1; | 408 | argc = string_array_len(argv); |
| 409 | while (argv[argc]) | ||
| 410 | argc++; | ||
| 411 | 409 | ||
| 412 | opts = 0; | 410 | opts = 0; |
| 413 | while (1) { | 411 | while (1) { |
