Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-4.1-opt

into  mysql.com:/misc/mysql/31752_/41-31752_
This commit is contained in:
tnurnberg@mysql.com/white.intern.koehntopp.de 2007-12-17 14:06:15 +01:00
commit b89fabe164

View file

@ -3067,7 +3067,7 @@ void do_get_file_name(struct st_command *command,
if (*p)
*p++= 0;
command->last_argument= p;
strmake(dest, name, dest_max_len);
strmake(dest, name, dest_max_len - 1);
}
@ -6375,7 +6375,7 @@ int main(int argc, char **argv)
if (save_file[0])
{
strmake(command->require_file, save_file, sizeof(save_file));
strmake(command->require_file, save_file, sizeof(save_file) - 1);
save_file[0]= 0;
}
run_query(cur_con, command, flags);