~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to drizzled/internal/mf_loadpath.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-04-17 01:38:47 UTC
  • mfrom: (1237.9.238 bad-staging)
  • Revision ID: osullivan.padraig@gmail.com-20100417013847-ibjioqsfbmf5yg4g
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
      strcpy(buff,path);                        /* Return org file name */
52
52
  }
53
53
  else
54
 
    sprintf(buff,"%s%s",own_path_prefix,path);
 
54
    snprintf(buff, sizeof(buff), "%s%s",own_path_prefix,path);
55
55
  strcpy(to,buff);
56
56
  return(to);
57
57
} /* my_load_path */