Fixed 'String too large' error in command-line tool.
--- a/tool/DataTypeHandler.cpp Mon Jan 09 15:16:40 2012 +0100
+++ b/tool/DataTypeHandler.cpp Tue Apr 10 18:56:50 2012 +0200
@@ -186,9 +186,10 @@
case 0x000a: // octet_string
case 0x000b: // unicode_string
dataSize = str.str().size();
- if (dataSize >= targetSize) {
+ if (dataSize > targetSize) {
stringstream err;
- err << "String too large";
+ err << "String too large ("
+ << dataSize << " > " << targetSize << ")";
throw SizeException(err.str());
}
str >> (char *) target;