fjpanag commented on code in PR #9251:
URL: https://github.com/apache/nuttx/pull/9251#discussion_r1191386462
##########
drivers/timers/rtc.c:
##########
@@ -844,11 +844,11 @@ int rtc_initialize(int minor, FAR struct rtc_lowerhalf_s
*lower)
upper->unlinked = false; /* Driver is not unlinked */
#endif
- /* Create the driver name. There is space for the a minor number up to 6
+ /* Create the driver name. There is space for the a minor number up to 10
* characters
*/
- snprintf(devpath, 16, "/dev/rtc%d", minor);
+ snprintf(devpath, 20, "/dev/rtc%d", minor);
Review Comment:
Done.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]