title: C++ - strcpy_s argument errors
body: <p>I'm getting some errors when using strcpy_s and can't figure out what I'm doing wrong.</p>
  
  <p>The code:</p>
  
  <p>Player.hpp:</p>
  
  <pre><code>string name;
  Player(string);
  </code></pre>
  
  <p>Player.cpp:</p>
  
  <pre><code>Player::Player(string newName)
  {
      strcpy_s(name, name.size(), newName);//error is here
      health = 20;
  }
  </code></pre>
  
  <p>The errors:</p>
  
  <ul>
  <li>Too many arguments in function call</li>
  <li>No instance of overloaded function 'strcpy_s' matches the argument list</li>
  </ul>