Bhuvan B created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/911
Project:Branches: BhuvanB404/rtems:fix/nvdisk-flashdisk-device-naming to rtems/rtos/rtems:main Author: Bhuvan B ## Summary Fix off-by-one error in nvdisk/flashdisk device naming For example, with RTEMS_NVDISK_DEVICE_BASE_NAME = /dev/nvd: name\[ sizeof( RTEMS_NVDISK_DEVICE_BASE_NAME ) \] name\[9\] is '\\0' which is being indexed currently. name\[8\] is the correct index to be modified. Use sizeof(RTEMS_NVDISK_DEVICE_BASE_NAME) - 1 to correctly index the last character of the device name instead of the null terminator. Closes #5402 Signed-off-by: BhuvanB404 [email protected] <!--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/911 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
