summaryrefslogtreecommitdiff
path: root/security/fwbuilder/patches/patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp
blob: 398dcdf160eb6561e42f95c018bfdf39df5b3f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-src_libfwbuilder_src_fwbuilder_AddressRange.cpp,v 1.1 2017/06/17 19:52:13 joerg Exp $

Adding integer to a char[] string doesn't do the right thing.

--- src/libfwbuilder/src/fwbuilder/AddressRange.cpp.orig	2017-06-10 17:41:07.168361613 +0000
+++ src/libfwbuilder/src/fwbuilder/AddressRange.cpp
@@ -79,7 +79,7 @@ FWObject& AddressRange::shallowDuplicate
     const AddressRange *n = dynamic_cast<const AddressRange *>(o);
     if (n==NULL)
         throw(FWException(
-"Attempt to copy incompatible object to AddressRange: objectID="+o->getId()));
+"Attempt to copy incompatible object to AddressRange: objectID="+std::to_string(o->getId())));
 
     start_address = n->getRangeStart();
     end_address   = n->getRangeEnd();