Commit c25619f2 authored by tnurnberg@sin.intern.azundris.com's avatar tnurnberg@sin.intern.azundris.com
Browse files

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

into  sin.intern.azundris.com:/misc/mysql/32770/51-32770
parents 786b3a2b 72b00786
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3115,7 +3115,10 @@ com_connect(String *buffer, char *line)
      Two null bytes are needed in the end of buff to allow
      get_arg to find end of string the second time it's called.
    */
    strmake(buff, line, sizeof(buff)-2);
    tmp= strmake(buff, line, sizeof(buff)-2);
#ifdef EXTRA_DEBUG
    tmp[1]= 0;
#endif
    tmp= get_arg(buff, 0);
    if (tmp && *tmp)
    {
+2 −2
Original line number Diff line number Diff line
@@ -3654,7 +3654,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);
}


@@ -6975,7 +6975,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);
+2 −2
Original line number Diff line number Diff line
@@ -282,7 +282,7 @@ void symdirget(char *dir)

  SYNOPSIS
    unpack_dirname()
    to			Store result here.  May be = from
    to			result-buffer, FN_REFLEN characters. may be == from
    from		'Packed' directory name (may contain ~)

 IMPLEMENTATION
@@ -408,7 +408,7 @@ size_t unpack_filename(char * to, const char *from)

	/* Convert filename (unix standard) to system standard */
	/* Used before system command's like open(), create() .. */
	/* Returns length of to */
	/* Returns used length of to; total length should be FN_REFLEN */

size_t system_filename(char * to, const char *from)
{
+2 −2
Original line number Diff line number Diff line
@@ -2994,10 +2994,10 @@ int MYSQL_BIN_LOG::purge_logs_before_date(time_t purge_time)
void MYSQL_BIN_LOG::make_log_name(char* buf, const char* log_ident)
{
  uint dir_len = dirname_length(log_file_name); 
  if (dir_len > FN_REFLEN)
  if (dir_len >= FN_REFLEN)
    dir_len=FN_REFLEN-1;
  strnmov(buf, log_file_name, dir_len);
  strmake(buf+dir_len, log_ident, FN_REFLEN - dir_len);
  strmake(buf+dir_len, log_ident, FN_REFLEN - dir_len -1);
}


+1 −1
Original line number Diff line number Diff line
@@ -925,7 +925,7 @@ bool load_master_data(THD* thd)
			     0, (SLAVE_IO | SLAVE_SQL)))
          my_message(ER_MASTER_INFO, ER(ER_MASTER_INFO), MYF(0));
	strmake(active_mi->master_log_name, row[0],
		sizeof(active_mi->master_log_name));
		sizeof(active_mi->master_log_name) -1);
	active_mi->master_log_pos= my_strtoll10(row[1], (char**) 0, &error_2);
        /* at least in recent versions, the condition below should be false */
	if (active_mi->master_log_pos < BIN_LOG_HEADER_SIZE)
Loading