Rev 4273 | Rev 4310 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4273 | Rev 4297 | ||
---|---|---|---|
Line 580... | Line 580... | ||
580 | char *buf; |
580 | char *buf; |
581 | switch (cmd->argv[i].type) { |
581 | switch (cmd->argv[i].type) { |
582 | case ARG_TYPE_STRING: |
582 | case ARG_TYPE_STRING: |
583 | buf = (char *) cmd->argv[i].buffer; |
583 | buf = (char *) cmd->argv[i].buffer; |
584 | str_ncpy(buf, cmd->argv[i].len, cmdline + start, |
584 | str_ncpy(buf, cmd->argv[i].len, cmdline + start, |
585 | (end - start) + 1); |
585 | end - start); |
586 | break; |
586 | break; |
587 | case ARG_TYPE_INT: |
587 | case ARG_TYPE_INT: |
588 | if (!parse_int_arg(cmdline + start, end - start, |
588 | if (!parse_int_arg(cmdline + start, end - start, |
589 | &cmd->argv[i].intval)) |
589 | &cmd->argv[i].intval)) |
590 | error = true; |
590 | error = true; |