pkarashchenko commented on a change in pull request #5953:
URL: https://github.com/apache/incubator-nuttx/pull/5953#discussion_r841011558
##########
File path: sched/module/mod_insmod.c
##########
@@ -198,9 +198,11 @@ FAR void *insmod(FAR const char *filename, FAR const char
*modname)
goto errout_with_loadinfo;
}
+#ifdef HAVE_MODLIB_NAMES
/* Save the module name in the registry entry */
strlcpy(modp->modname, modname, MODLIB_NAMEMAX);
Review comment:
```suggestion
strlcpy(modp->modname, modname, sizeof(modp->modname));
```
--
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]