Fixed snprintf check in tnc-ifmap plugin

This commit is contained in:
Tobias Brunner 2012-09-28 18:49:16 +02:00
parent 1b1d1d938f
commit 0273245877
1 changed files with 1 additions and 1 deletions

View File

@ -296,7 +296,7 @@ static axiom_node_t* create_ip_address(private_tnc_ifmap_soap_t *this,
{
written = snprintf(pos, len, "%s%x", first ? "" : ":",
256*address.ptr[i] + address.ptr[i+1]);
if (written < 0 || written > len)
if (written < 0 || written >= len)
{
break;
}