aboutsummaryrefslogtreecommitdiff
path: root/shell/shell_common.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-03 21:31:16 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-18 19:20:58 +0200
commit442d522f0bc6f29c14a3e54a0af3aac68bb891a1 (patch)
treeaa36853bf59cf4b3d4808d391ab31a714c3fc28c /shell/shell_common.c
parentceaffde51163394c47fec34dac8663ae8152a699 (diff)
downloadbusybox-w32-442d522f0bc6f29c14a3e54a0af3aac68bb891a1.tar.gz
busybox-w32-442d522f0bc6f29c14a3e54a0af3aac68bb891a1.tar.bz2
busybox-w32-442d522f0bc6f29c14a3e54a0af3aac68bb891a1.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.c4
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) {