]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wxcrt.cpp
sizeof(char) is 1. By definition.
[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';
     }