From 257e25eb0e1075c62e77612e960fb2e28df3b118 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Sat, 23 Jun 2012 01:06:38 +0000 Subject: [PATCH] Make libresrc_getconfig less weird Originally committed to SVN as r6915. --- aegisub/src/libresrc/libresrc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aegisub/src/libresrc/libresrc.cpp b/aegisub/src/libresrc/libresrc.cpp index 7014f21e1..fa7665386 100644 --- a/aegisub/src/libresrc/libresrc.cpp +++ b/aegisub/src/libresrc/libresrc.cpp @@ -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(config), size); }