From 06f996a139a5ac660e98163fac796f94c1a6468f Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 27 Jun 2017 20:57:31 +0200 Subject: Ensure we can deal with non-null terminated strings. --- common/contactpreprocessor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'common/contactpreprocessor.cpp') 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 } contact.setEmails(emails); - const auto photo = addressee.photo().rawData(); - contact.setPhoto(photo); + contact.setPhoto(addressee.photo().rawData()); } ContactPropertyExtractor::~ContactPropertyExtractor() -- cgit v1.2.3