Yang Zhang created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1458

Project:Branches: Chloe/rtems:fix-libblock-device-base-name to 
rtems/rtos/rtems:main
Author:   Yang Zhang



## Summary

cpukit/libblock: Fix device naming for nvdisk and flashdisk

Using sizeof(BASE_NAME) incorrectly targeted the null terminator instead
of the suffix character 'a', corrupting device names when configuring
multiple instances. Subtract 1 to properly index the character.

Fixes #5402.


## Generative AI

<!-- If you have used AI please use the "AI Contribution" template otherwise 
leave this blank see our fulls statement at 
https://www.rtems.org/generative-ai/-->


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1458
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/sent_notifications/5-3ex71q0s61t2fhkx4flpwsian-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to