Browse Source

use const size_t instead of size_t

pull/366/head
Jeff Becker 9 years ago
parent
commit
babcbcbcea
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 2
      Identity.cpp

2
Identity.cpp

@ -233,7 +233,7 @@ namespace data
size_t IdentityEx::ToBuffer (uint8_t * buf, size_t len) const size_t IdentityEx::ToBuffer (uint8_t * buf, size_t len) const
{ {
size_t fullLen = GetFullLen(); const size_t fullLen = GetFullLen();
if (fullLen > len) { if (fullLen > len) {
// buffer is too small and may overflow somewhere else // buffer is too small and may overflow somewhere else
return 0; return 0;

Loading…
Cancel
Save