]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
#4479: wx.ComboBox needs a SetFont method
[wxWidgets.git] / include / wx / string.h
index aaa1581d9d3ab97fb644ce2832f90ec763a0330e..ce69cb8026b0808aa02a0a9a49d36e7a8c2f1dba 100644 (file)
@@ -2895,7 +2895,7 @@ public:
                 len = lenWanted - 1;
             }
 
-            wxTmemcpy(m_buf.data(), buf, len + 1);
+            memcpy(m_buf.data(), buf, (len + 1)*sizeof(CharType));
         }
         //else: conversion failed, this can happen when trying to get Unicode
         //      string contents into a char string