title: C++ coverity issue STRING_OVERFLOW
body: <p>I see a coverity issue for the following code:</p>
  <pre><code>#define LEN 32
  typedef char BUFFER[LEN+1];
  
  void func(char* str)
  {
      BUFFER buf;
      strcpy((char*)buf, str);
  }
  </code></pre>
  <p>The issue says -
  &quot;Copy into fixed size buffer (STRING_OVERFLOW)&quot; for the strcpy() line.</p>
  <p>I see that since str is char* its length cannot be predicted (although as per my code it will always be 32). So I tried to use strncpy() and set the null terminating character. Something like this:</p>
  <pre><code>strncpy((char*)buf, str, LEN);
  buf[LEN] = '\0';
  </code></pre>
  <p>But this does not resolve the issue. Am I understanding the error right? Or is there something extra to be done?</p>
  <p>Thanks in advance.</p>