pkarashchenko commented on code in PR #1669:
URL: https://github.com/apache/nuttx-apps/pull/1669#discussion_r1141800816


##########
system/vi/vi.c:
##########
@@ -753,7 +753,7 @@ static void vi_setcursor(FAR struct vi_s *vi, uint16_t row, 
uint16_t column)
 
   /* Format the cursor position command.  The origin is (1,1). */
 
-  len = snprintf(buffer, 16, g_fmtcursorpos, row + 1, column + 1);
+  len = snprintf(buffer, sizeof(buffer), g_fmtcursorpos, row + 1, column + 1);

Review Comment:
   Please fix



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