title: Tainted string message from Coverity using getenv
body: <p>Running Coverity on my code results in tainted string error message. I am using the "path" variable declared in the stack, so I am not sure why I am seeing errors. I can only think that using <code>getenv()</code> directly in the <code>strncpy()</code> is causing the error. Would the fix below eliminate this error?</p>
  
  <pre><code>char path[1024] = {NULL, };
  if(getenv("A"))
      strncpy(path, getenv("A"), strlen(getenv("A")));
  </code></pre>
  
  <p>to </p>
  
  <pre><code>char path[1024] = {NULL, };
  char * adriver = getenv("A");
  if(adriver)
      strncpy(path, adriver, strlen(adriver));
  </code></pre>