title: how can I use strcpy safely
body: <p>I want to assign a <code>char*</code> to <code>char*</code> , if I use <code>strcpy</code> I get several run time memory problem so I fix it by simple assignment using <code>= operator</code>.
  Can any one explain  what  should prepare before using <code>strcpy</code> to avoid memory issues.</p>
  
  <p>EDIT:</p>
  
  <pre><code>int Function(const char* K,char* FileIN,char* FileOut,int DC)
  {   
      char *fic_in,*n_fic,*fic_out,*fic_dec;
  
      unsigned char k[17];
  
          fic_in = (char*)malloc(60*sizeof(char));
  
          strcpy((char*)k,K);
  
          //strcpy(fic_in,FileIN);  //I remove this one
          fic_in=FileIN;            //and replace it by this
        ...
  </code></pre>