Huang Qi 1ba443aab2 prctl: Replace strncpy with strlcpy for safety
strlcpy ensure the destination is NUL-terminated, and also fix warning:
```c
task/task_prctl.c:138:15: warning: 'strncpy' output may be truncated copying 30 bytes from a string of length 31 [-Wstringop-truncation]
  138 |               strncpy(name, tcb->name, CONFIG_TASK_NAME_SIZE - 1);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-08-24 01:54:53 +08:00
..
2022-08-07 23:33:19 +08:00
2022-04-02 20:09:42 +08:00
2022-08-18 22:11:29 +03:00
2022-08-07 23:33:19 +08:00
2022-08-07 23:33:19 +08:00
2022-08-18 22:11:29 +03:00