Make libresrc_getconfig less weird

Originally committed to SVN as r6915.
This commit is contained in:
Thomas Goyne 2012-06-23 01:06:38 +00:00
parent e99b1aaad4
commit 257e25eb0e

View file

@ -13,6 +13,5 @@ wxIcon libresrc_geticon(const unsigned char *buff, size_t size) {
}
const std::string libresrc_getconfig(const unsigned char *config, size_t size) {
std::string str((char*)config, size);
return str.c_str();
return std::string(reinterpret_cast<const char *>(config), size);
}