Safety updates
This commit is contained in:
parent
a4535c92c3
commit
79d5bf66a7
@ -17,8 +17,11 @@ namespace std {
|
||||
ostringstream(const string &str, int=ios::out) {
|
||||
sstr = new ostrstream((char *)str.c_str(), str.size(), ios::out);
|
||||
}
|
||||
~ostringstream() { delete sstr; }
|
||||
std::string str() { return std::string(sstr->str()); }
|
||||
~ostringstream() { delete sstr->str(); delete sstr; }
|
||||
std::string str() {
|
||||
std::string _str = std::string(sstr->str()); _str.append('\0');
|
||||
return _str;
|
||||
}
|
||||
int pcount() { return sstr->pcount(); }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user