mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-09 07:06:47 +00:00
fix: 修复数组类型错误的问题
This commit is contained in:
parent
d0d79c828d
commit
1c2b423d77
@ -22,7 +22,7 @@ int shell_readline(int fd, char *buf);
|
|||||||
void print_ascii_logo();
|
void print_ascii_logo();
|
||||||
extern char *shell_current_path;
|
extern char *shell_current_path;
|
||||||
//保存的历史命令
|
//保存的历史命令
|
||||||
char history_commands[mem_history][256];
|
char history_commands[mem_history][INPUT_BUFFER_SIZE];
|
||||||
int count_history;
|
int count_history;
|
||||||
//现在对应的命令
|
//现在对应的命令
|
||||||
int pointer;
|
int pointer;
|
||||||
@ -58,7 +58,7 @@ void main_loop(int kb_fd)
|
|||||||
|
|
||||||
if (count)
|
if (count)
|
||||||
{
|
{
|
||||||
char *command_origin[strlen(input_buffer)];
|
char command_origin[strlen(input_buffer)];
|
||||||
strcpy(command_origin, input_buffer);
|
strcpy(command_origin, input_buffer);
|
||||||
int cmd_num = parse_command(input_buffer, &argc, &argv);
|
int cmd_num = parse_command(input_buffer, &argc, &argv);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user