mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 00:58:37 -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) {
|
||||
return nullptr;
|
||||
}
|
||||
// nul terminate
|
||||
reply[ret+ret2] = 0;
|
||||
ret += ret2;
|
||||
}
|
||||
return strdup(reply);
|
||||
|
Loading…
Reference in New Issue
Block a user