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

Portability fixes

Fixed bug with long log-filenames in Innobase.
This commit is contained in:
monty@hundin.mysql.fi
2001-10-11 04:25:00 +03:00
parent 6265dfccda
commit 075a0fbde0
7 changed files with 38 additions and 15 deletions

View File

@ -1543,10 +1543,11 @@ static struct manager_exec* manager_exec_new(char* arg_start,char* arg_end)
tmp->error="Too few arguments";
return tmp;
}
tmp->data_buf=(char*)tmp+sizeof(*tmp);
/* We have to allocate 'args' first as this must be alligned */
tmp->args=(char**)(tmp +1);
tmp->data_buf= (char*) (tmp->args + num_args);
memcpy(tmp->data_buf,arg_start,arg_len);
tmp->data_buf_size=arg_len;
tmp->args=(char**)(tmp->data_buf+arg_len);
tmp->num_args=num_args;
tmp->ident=tmp->data_buf;
tmp->ident_len=strlen(tmp->ident);