summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-09 02:29:30 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-09 02:29:30 +0100
commit5da3dca64c9d0398a5507688a230f4a9bf7dc9cb (patch)
treebb42a4d88f2f422c77c309ff1765f7e1b24d28c6 /src
parent3a69e2805f4b2119194ba2357fa9895bf1ae147f (diff)
Fix typo.
Diffstat (limited to 'src')
-rw-r--r--src/data.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.cc b/src/data.cc
index 9fcf9601..aed8a4d2 100644
--- a/src/data.cc
+++ b/src/data.cc
@@ -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);
}