mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 17:18:28 -04:00
SITL: fixed coverity warning
This commit is contained in:
parent
909a46a33b
commit
847483d744
@ -139,6 +139,8 @@ Connection: Keep-Alive
|
|||||||
if (ret2 <= 0) {
|
if (ret2 <= 0) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
// nul terminate
|
||||||
|
reply[ret+ret2] = 0;
|
||||||
ret += ret2;
|
ret += ret2;
|
||||||
}
|
}
|
||||||
return strdup(reply);
|
return strdup(reply);
|
||||||
|
Loading…
Reference in New Issue
Block a user