1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug #6660 mysqldump creates bad pathnames on Windows

sql_show.cc:
  changed strdup to thd->memdup per Serg's advice
This commit is contained in:
reggie@mdk10.(none)
2005-03-15 16:24:37 -06:00
parent ef86c0af65
commit 6c00af77a0

View File

@ -1228,12 +1228,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