The unified diff between revisions [92f17752..] and [11a5f681..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'src/asn1_int.cpp'
#
#
# patch "src/asn1_int.cpp"
# from [6850c83199dfd8c4206a9414aaa41fb7ceffe132]
# to [65d98147a3479cade8a79d789cf18473367e78dd]
#
============================================================
--- src/asn1_int.cpp 6850c83199dfd8c4206a9414aaa41fb7ceffe132
+++ src/asn1_int.cpp 65d98147a3479cade8a79d789cf18473367e78dd
@@ -1,6 +1,6 @@
/*************************************************
* ASN.1 Internals Source File *
-* (C) 1999-2006 The Botan Project *
+* (C) 1999-2007 Jack Lloyd *
*************************************************/
#include <botan/asn1_int.h>
@@ -43,8 +43,8 @@ std::string to_string(const BER_Object&
*************************************************/
std::string to_string(const BER_Object& obj)
{
- std::string str((const char*)obj.value.begin(), obj.value.size());
- return str;
+ return std::string(reinterpret_cast<const char*>(obj.value.begin()),
+ obj.value.size());
}
/*************************************************