patacongo commented on a change in pull request #4720:
URL: https://github.com/apache/incubator-nuttx/pull/4720#discussion_r735237699
##########
File path: fs/mqueue/mq_open.c
##########
@@ -206,6 +206,14 @@ static int file_mq_vopen(FAR struct file *mq, FAR const
char *mq_name,
mq_name++;
}
+ fullpath = (FAR char *)kmm_malloc(MAX_MQUEUE_PATH);
+
Review comment:
Wouldn't asprintf() simplify all of this?
--
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]