[svn] commit: r415 - /branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Dec 30 07:26:41 UTC 2009
Author: jinmei
Date: Wed Dec 30 07:26:40 2009
New Revision: 415
Log:
avoid using a magic number
Modified:
branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc
Modified: branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc
==============================================================================
--- branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc (original)
+++ branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc Wed Dec 30 07:26:40 2009
@@ -103,7 +103,7 @@
ft_state state = ft_init;
std::vector<unsigned char> offsets;
- offsets.reserve(128);
+ offsets.reserve(Name::MAX_LABELS);
offsets.push_back(0);
std::string ndata;
More information about the bind10-changes
mailing list