title: Using strcpy_s to copy string to char*
body: <p>I know that when you use strcpy_s you are supposed to supply the size of the destination string as the second parameter. But if the destination string is a char* then I'm not sure I'm doing it right. I have three examples:</p>
  
  <pre><code>char* dest = new char;
  
  // Example 1
  CString strTemp = "Bob";
  strcpy_s(dest, strTemp.GetLength() + 1, strTemp);   
  
  // Example 2
  strcpy_s(dest, strlen("Jose")+1, "Jose");
  
  // Example 3 
  char* c = new char;
  c = "Richard";
  strcpy_s(dest, strlen(c) + 1,c);        
  </code></pre>
  
  <p>Is this all correct?</p>