title: C: "zsh: abort" error
body: <p>Here's my program: </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  char    *ft_strcat(char *dest, char *src)
  {
      int i;
      int k;
  
      i = 0;
      k = 0;
      while (dest[i])
          i++;
      while (src[k])
      {
          dest[i + k] = src[k];
          //i++;
          k++;
      }
      dest[i + k] = '\0';
      return (dest);
  }
  
  int main(){
      //ft_strcat
      char str[] = "Hello, ";
      char str2[] = "World!";
      printf("%s", ft_strcat(str, str2));
      return 0;
  }
  </code></pre>
  
  <p>It's implementing of strcat function.
  When I'm trying to copy "World!" to "Hello, " I have an error "zsh: abort". There's no problem when I'm trying to copy to "Hello ".</p>
  
  <p>What can I do with this error? Why this comma causes this problem?</p>