~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_path.cc

  • Committer: Brian Aker
  • Date: 2008-12-15 07:27:18 UTC
  • mfrom: (670.1.24 devel)
  • Revision ID: brian@tangent.org-20081215072718-uf9nak79262b8snk
Merge of Monty's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
 
82
82
static char *find_file_in_path(char *to, const char *name)
83
83
{
84
 
  char *path,*pos, dir[2];
 
84
  char *path, *pos, dir[2];
85
85
  const char *ext="";
86
86
  ostringstream sstream;
87
87
 
97
97
  {
98
98
    if (path != pos)
99
99
    {
100
 
      sstream << path << dir << name << ext << NULL;
 
100
      sstream << path << dir << name << ext  << '\0';
101
101
      strncpy(to, sstream.str().c_str(), sstream.str().length());
102
102
      if (!access(to,F_OK))
103
103
      {