title: How to fix gcc -Wall "embedded '\0' in format" warning
body: <p>This may not be very crucial, however I am trying to fix all the warnings g++ is complaining about. In the code below, I am getting "embedded '\0' in format" warning for the snprintf() line.</p>
  
  <p>How can I fix this?</p>
  
  <pre><code>    int filePathSize = path.size() + s.size() + 1;
      char filePath[filePathSize];
      snprintf(filePath,filePathSize,"%s%s\0",path.c_str(),s.c_str());
  </code></pre>
  
  <p>Thanks in advance...</p>