Skip to content

Commit 651a3d4

Browse files
committed
Fix CLI
When function got split out, with a char *cmdBuffer call variable, sizeof(cmdBuffer) no longer applies. This was broken between v1.4 and v2.0.
1 parent 17dffee commit 651a3d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Everywhere/menuCommands.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ t_cliResult processCommand(char *cmdBuffer)
6464
}
6565

6666
// Remove $
67-
memmove(cmdBuffer, &cmdBuffer[1], sizeof(cmdBuffer) - 1);
67+
memmove(cmdBuffer, &cmdBuffer[1], strlen(cmdBuffer));
6868

6969
// Change * to , and null terminate on the first CRC character
7070
cmdBuffer[strlen(cmdBuffer) - 3] = ',';

0 commit comments

Comments
 (0)