Commit 9a4f00c
Use rt_strncpy instead of manual truncation for object names
- Replace rt_memcpy with rt_strncpy for safer name handling
- Remove manual obj_name_len truncation
- rt_strncpy automatically handles truncation safely
- Ensure null termination at RT_NAME_MAX - 1
Co-authored-by: Rbb666 <[email protected]>1 parent 65c2dee commit 9a4f00c
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
403 | 402 | | |
404 | | - | |
405 | | - | |
| 403 | + | |
| 404 | + | |
406 | 405 | | |
407 | 406 | | |
408 | 407 | | |
| |||
515 | 514 | | |
516 | 515 | | |
517 | 516 | | |
518 | | - | |
519 | 517 | | |
520 | | - | |
521 | | - | |
| 518 | + | |
| 519 | + | |
522 | 520 | | |
523 | 521 | | |
524 | 522 | | |
| |||
0 commit comments