xiaoxiang781216 commented on code in PR #3608:
URL: https://github.com/apache/nuttx-apps/pull/3608#discussion_r3548281648


##########
system/fastboot/fastboot.c:
##########
@@ -879,7 +880,10 @@ static void fastboot_filedump(FAR struct fastboot_ctx_s 
*ctx,
       return;
     }
 
-  ret = sscanf(arg, "%s %" PRIdOFF " %zu", ctx->upload_param.u.file.path,
+  snprintf(format, sizeof(format), "%%%zus %%" PRIdOFF " %%zu",

Review Comment:
   why not use PATH_MAX directly



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