acassis commented on code in PR #3609:
URL: https://github.com/apache/nuttx-apps/pull/3609#discussion_r3551371700


##########
system/nxplayer/nxplayer_main.c:
##########
@@ -319,8 +319,8 @@ static int nxplayer_cmd_playraw(FAR struct nxplayer_s 
*pplayer, char *parg)
   int chmap = 0;
   char filename[128];
 
-  sscanf(parg, "%s %d %d %d %d", filename, &channels, &bpsamp,
-                                 &samprate, &chmap);
+  sscanf(parg, "%127s %d %d %d %d", filename, &channels, &bpsamp,

Review Comment:
   @Old-Ding I think instead using hard-code filename[128] we should use 
CONFIG_PATH_MAX



-- 
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]

Reply via email to