]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[hackathon94] Fixed 4o6subnetInterfaceId for not 64 bit machines
authorFrancis Dupont <fdupont@isc.org>
Sun, 1 Nov 2015 06:35:40 +0000 (07:35 +0100)
committerFrancis Dupont <fdupont@isc.org>
Sun, 1 Nov 2015 06:35:40 +0000 (07:35 +0100)
src/bin/dhcp4/tests/config_parser_unittest.cc

index 99a41334bf0d0b9908d6ff46621a5a4a5b60ec3b..a495d12a575d8134eb1965a58b9e4d07741732d2 100644 (file)
@@ -4017,7 +4017,7 @@ TEST_F(Dhcp4ParserTest, 4o6subnetInterfaceId) {
     const char *exp_data = "vlan123";
     // Let's convert vlan123 to vector<uint8_t> format.
     // We need to skip the last \0 byte, thuse sizeof() - 1.
-    vector<uint8_t> exp(exp_data, exp_data + sizeof(exp_data) - 1);
+    vector<uint8_t> exp(exp_data, exp_data + sizeof(*exp_data) - 1);
 
     EXPECT_TRUE(exp == data);
 }