1
0
Fork 0

Another sprintf fix in PVE protocol this time

This commit is contained in:
James Turner 2023-01-09 10:57:21 +00:00
parent f7b0b77abb
commit 0f71686388

View file

@ -90,7 +90,7 @@ bool FGPVE::gen_message() {
heave_b1 = heave >> 8;
heave_b2 = heave & 0x00ff;
sprintf( buf, "p%c%c%c%c%c%c\n",
snprintf( buf, 10, "p%c%c%c%c%c%c\n",
roll_b1, roll_b2, pitch_b1, pitch_b2, heave_b1, heave_b2 );
length = 8;