~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_open.cc

  • Committer: Brian Aker
  • Date: 2008-12-09 17:33:02 UTC
  • mfrom: (656.1.54 devel)
  • Revision ID: brian@tangent.org-20081209173302-aptngvc7efxnatnt
Merge from Monty.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <my_dir.h>
19
19
#include <errno.h>
20
20
#include <stdlib.h>
 
21
#include <string.h>
21
22
 
22
23
/*
23
24
  Open a file
124
125
    else
125
126
    {
126
127
      pthread_mutex_lock(&THR_LOCK_open);
127
 
      if ((my_file_info[fd].name = (char*) my_strdup(FileName,MyFlags)))
 
128
      if ((my_file_info[fd].name = (char*) strdup(FileName)))
128
129
      {
129
130
        my_file_opened++;
130
131
        my_file_total_opened++;