strcmp() --> strncmp()

This commit is contained in:
Pavel Kirienko
2014-04-19 16:50:43 +04:00
parent acff3d274c
commit 4112c949fc
+1 -1
View File
@@ -126,7 +126,7 @@ bool DataTypeDescriptor::operator==(const DataTypeDescriptor& rhs) const
(kind_ == rhs.kind_) &&
(id_ == rhs.id_) &&
(signature_ == rhs.signature_) &&
!std::strcmp(full_name_, rhs.full_name_);
!std::strncmp(full_name_, rhs.full_name_, MaxFullNameLen);
}
}