diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-27 20:57:31 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-06-27 20:57:31 +0200 |
commit | 06f996a139a5ac660e98163fac796f94c1a6468f (patch) | |
tree | f1eca6b33e045d8e58bf2f397bbc638a136eb7e8 /common/contactpreprocessor.cpp | |
parent | 0f888b18bf7e6eecc0a2aa5aaa015cf3b9c755be (diff) | |
download | sink-06f996a139a5ac660e98163fac796f94c1a6468f.tar.gz sink-06f996a139a5ac660e98163fac796f94c1a6468f.zip |
Ensure we can deal with non-null terminated strings.
Diffstat (limited to 'common/contactpreprocessor.cpp')
-rw-r--r-- | common/contactpreprocessor.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/contactpreprocessor.cpp b/common/contactpreprocessor.cpp index 68a8acb..d331421 100644 --- a/common/contactpreprocessor.cpp +++ b/common/contactpreprocessor.cpp | |||
@@ -36,8 +36,7 @@ void updatedProperties(Sink::ApplicationDomain::Contact &contact, const KContact | |||
36 | } | 36 | } |
37 | contact.setEmails(emails); | 37 | contact.setEmails(emails); |
38 | 38 | ||
39 | const auto photo = addressee.photo().rawData(); | 39 | contact.setPhoto(addressee.photo().rawData()); |
40 | contact.setPhoto(photo); | ||
41 | } | 40 | } |
42 | 41 | ||
43 | ContactPropertyExtractor::~ContactPropertyExtractor() | 42 | ContactPropertyExtractor::~ContactPropertyExtractor() |