fixed bug in non-UNICODE version of String::getUTF8String
authorVictor Kirhenshtein <victor@netxms.org>
Fri, 13 May 2016 08:31:11 +0000 (11:31 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Fri, 13 May 2016 08:31:11 +0000 (11:31 +0300)
src/libnetxms/string.cpp

index fdffc5a..2a3d08d 100644 (file)
@@ -489,6 +489,6 @@ char *String::getUTF8String()
 #ifdef UNICODE
        return UTF8StringFromWideString(m_buffer);
 #else
-       return strdup(m_buffer);
+       return UTF8StringFromMBString(m_buffer);
 #endif
 }