From 3d172ef6f8d7a4c420c0a7ee4d3a8bc3ea41ab96 Mon Sep 17 00:00:00 2001 From: Andreas Huggel Date: Fri, 15 Oct 2010 07:44:48 +0000 Subject: [PATCH] #736: Fix for Make starting with a dash. --- src/makernote.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/makernote.cpp b/src/makernote.cpp index 034882d7..c4f3a203 100644 --- a/src/makernote.cpp +++ b/src/makernote.cpp @@ -86,6 +86,7 @@ namespace Exiv2 { bool TiffMnRegistry::operator==(const std::string& key) const { std::string make(make_); + if (key.size() > 0 && key[0] == '-') return false; return make == key.substr(0, make.length()); }