Merge mdk10.(none):/home/reggie/bk/mysql-4.1

into mdk10.(none):/home/reggie/bk/mysql-5.0
This commit is contained in:
reggie@mdk10.(none) 2005-03-15 16:28:47 -06:00
commit 3bfcc5dd75

View File

@ -704,12 +704,11 @@ static void append_directory(THD *thd, String *packet, const char *dir_type,
packet->append(dir_type);
packet->append(" DIRECTORY='", 12);
#ifdef __WIN__
char *winfilename = strdup(filename);
char *winfilename = thd->memdup(filename, length);
for (uint i=0; i < length; i++)
if (winfilename[i] == '\\')
winfilename[i] = '/';
packet->append(winfilename, length);
free(winfilename);
#else
packet->append(filename, length);
#endif