- Changed std::transform(..., ::towlower/::towupper) to _wcsupr/_wcslwr

- MathParser: Fixed stack overflow (and possible crash) when the nested conditional limit is exceeded
This commit is contained in:
Birunthan Mohanathas
2012-01-25 16:00:49 +00:00
parent 430e287bec
commit 35be827071
6 changed files with 22 additions and 30 deletions

View File

@ -42,7 +42,7 @@ public:
{
key = name;
}
std::transform(key.begin(), key.end(), key.begin(), ::towlower);
_wcslwr(&key[0]);
size_t len = _snwprintf_s(buffer, _TRUNCATE, L":%llx:%x", time, size);
key.append(buffer, len);