[components] fix format issue

This commit is contained in:
bernard 2022-12-13 08:08:38 +08:00 committed by Man, Jianting (Meco)
parent 8b5a501831
commit aa0c8b4a93
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2006-2021, RT-Thread Development Team * Copyright (c) 2006-2022, RT-Thread Development Team
* *
* SPDX-License-Identifier: Apache-2.0 * SPDX-License-Identifier: Apache-2.0
* *
@ -342,7 +342,7 @@ static char *_msh_exec_search_path(const char *path, const char *pg_name)
*path_buffer = '\0'; *path_buffer = '\0';
} }
strcat(path_buffer, pg_name); strcat(path_buffer, pg_name);
if (_msh_lwp_cmd_exists(path_buffer)) if (_msh_lwp_cmd_exists(path_buffer))
{ {
return path_buffer; return path_buffer;
@ -447,7 +447,7 @@ int _msh_exec_lwp(int debug, char *cmd, rt_size_t length)
goto found_program; goto found_program;
} }
/* only check these paths when the first argument doesn't contain path /* only check these paths when the first argument doesn't contain path
seperator */ seperator */
if (strstr(argv[0], "/")) if (strstr(argv[0], "/"))
{ {