From: Francis Dupont Date: Sun, 1 Nov 2015 06:35:40 +0000 (+0100) Subject: [hackathon94] Fixed 4o6subnetInterfaceId for not 64 bit machines X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c41b92a5168d9e8b057945746d7d4c1835bdbd4e;p=thirdparty%2Fkea.git [hackathon94] Fixed 4o6subnetInterfaceId for not 64 bit machines --- diff --git a/src/bin/dhcp4/tests/config_parser_unittest.cc b/src/bin/dhcp4/tests/config_parser_unittest.cc index 99a41334bf..a495d12a57 100644 --- a/src/bin/dhcp4/tests/config_parser_unittest.cc +++ b/src/bin/dhcp4/tests/config_parser_unittest.cc @@ -4017,7 +4017,7 @@ TEST_F(Dhcp4ParserTest, 4o6subnetInterfaceId) { const char *exp_data = "vlan123"; // Let's convert vlan123 to vector format. // We need to skip the last \0 byte, thuse sizeof() - 1. - vector exp(exp_data, exp_data + sizeof(exp_data) - 1); + vector exp(exp_data, exp_data + sizeof(*exp_data) - 1); EXPECT_TRUE(exp == data); }