ensure that source buffer is always terminated by a uni::null (which isn't automatically true for basic_string<T>).
git-svn-id: svn://10.0.0.236/trunk@68828 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -39,6 +39,7 @@ JS::Reader::Reader(const String &source, const String &sourceLocation, uint32 in
|
||||
begin = b;
|
||||
p = b;
|
||||
end = b + Reader::source.size();
|
||||
Reader::source.append(uni::null); // ensure last character is always '\0'
|
||||
#ifdef DEBUG
|
||||
recordString = 0;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user