~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_symlink.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-03 07:42:39 UTC
  • mto: (656.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: dev@torum.net-20081203074239-4qwr4u7prq7uqxet
First pass of replacing MySQL's my_stpcpy() with appropriate libc calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
int my_readlink(char *to, const char *filename, myf MyFlags)
36
36
{
37
37
#ifndef HAVE_READLINK
38
 
  my_stpcpy(to,filename);
 
38
  strcpy(to,filename);
39
39
  return 1;
40
40
#else
41
41
  int result=0;
47
47
    if ((my_errno=errno) == EINVAL)
48
48
    {
49
49
      result= 1;
50
 
      my_stpcpy(to,filename);
 
50
      strcpy(to,filename);
51
51
    }
52
52
    else
53
53
    {