SITL: fixed coverity warning

This commit is contained in:
Andrew Tridgell 2016-04-26 16:37:17 +10:00
parent 909a46a33b
commit 847483d744

View File

@ -139,6 +139,8 @@ Connection: Keep-Alive
if (ret2 <= 0) {
return nullptr;
}
// nul terminate
reply[ret+ret2] = 0;
ret += ret2;
}
return strdup(reply);