mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-23 10:41:50 +08:00
fix the wrong strcpy issue in list() function
This commit is contained in:
@@ -620,7 +620,7 @@ long list(void)
|
|||||||
FINSH_NEXT_SYSCALL(index))
|
FINSH_NEXT_SYSCALL(index))
|
||||||
{
|
{
|
||||||
/* skip the internal command */
|
/* skip the internal command */
|
||||||
if (strncpy((char*)index->name, "__", 2) == 0) continue;
|
if (strncmp((char*)index->name, "__", 2) == 0) continue;
|
||||||
|
|
||||||
#ifdef FINSH_USING_DESCRIPTION
|
#ifdef FINSH_USING_DESCRIPTION
|
||||||
rt_kprintf("%-16s -- %s\n", index->name, index->desc);
|
rt_kprintf("%-16s -- %s\n", index->name, index->desc);
|
||||||
|
Reference in New Issue
Block a user