title: Segmentation fault using strcat
body: <p>Here is my code :</p>
  
  <pre><code>char *name, name_log="log-";
  </code></pre>
  
  <p>------getting 'name' from user-----</p>
  
  <pre><code>strcat(name_log, name);
  char ext[] = ".log";
  strcat(name_log, ext);
  </code></pre>
  
  <p>What i need to end up with is name_log = "log-'name'.log" but Im getting a segmentation fault error :((. What am I doing wrong and how can I fix it ? Thx </p>