Fix typo.
authorCarl Hetherington <cth@carlh.net>
Mon, 9 Jul 2018 01:29:30 +0000 (02:29 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 9 Jul 2018 01:29:30 +0000 (02:29 +0100)
src/data.cc

index 9fcf9601e2c2c51f46b7cefb7f43fc31441bc1b5..aed8a4d2ef6eea25f419b4712f56d8fd283b0fb6 100644 (file)
@@ -111,5 +111,5 @@ Data::write_via_temp (boost::filesystem::path temp, boost::filesystem::path fina
 bool
 dcp::operator== (Data const & a, Data const & b)
 {
-       return (a.size() == b.size() && memcmp (a.data().get(), b.data().get(), a.size() == 0));
+       return (a.size() == b.size() && memcmp (a.data().get(), b.data().get(), a.size()) == 0);
 }