]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxcrt.cpp
Use C locale representation for floating point numbers in wxAny.
[wxWidgets.git] / src / common / wxcrt.cpp
index 5e8304da52f22d0ba6e4fad984c31dda94e00d7c..b9f4ef3c0728c2ae1c35a0af6def7cdd7fecb22f 100644 (file)
@@ -584,11 +584,11 @@ int ConvertStringToBuf(const wxString& s, char *out, size_t outsize)
     const size_t len = buf.length();
     if ( outsize > len )
     {
-        memcpy(out, buf, (len+1) * sizeof(char));
+        memcpy(out, buf, len+1);
     }
     else // not enough space
     {
-        memcpy(out, buf, (outsize-1) * sizeof(char));
+        memcpy(out, buf, outsize-1);
         out[outsize-1] = '\0';
     }