Skip to content

Commit 458dba6

Browse files
committed
Fixed issue #43
1 parent 9b8b3e8 commit 458dba6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NppJSONViewer/TreeBuilder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ const char* FALSE_STR = "false";
4343

4444
bool TreeBuilder::Null()
4545
{
46-
return this->String(NULL_STR, sizeof(NULL_STR), true);
46+
return this->String(NULL_STR, strlen(NULL_STR), true);
4747
}
4848

4949
bool TreeBuilder::Bool(bool b)
5050
{
5151
if (b)
52-
return this->String(TRUE_STR, sizeof(TRUE_STR), true);
53-
return this->String(FALSE_STR, sizeof(FALSE_STR), true);
52+
return this->String(TRUE_STR, strlen(TRUE_STR), true);
53+
return this->String(FALSE_STR, strlen(FALSE_STR), true);
5454
}
5555

5656
bool TreeBuilder::Int(int i) { cout << "Int(" << i << ")" << endl; return true; }

0 commit comments

Comments
 (0)