Loading client/mysql.cc +4 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading client/mysqltest.c +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading @@ -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); Loading mysys/mf_pack.c +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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) { Loading sql/log.cc +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading sql/repl_failsafe.cc +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
client/mysql.cc +4 −1 Original line number Diff line number Diff line Loading @@ -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) { Loading
client/mysqltest.c +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading Loading @@ -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); Loading
mysys/mf_pack.c +2 −2 Original line number Diff line number Diff line Loading @@ -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 Loading Loading @@ -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) { Loading
sql/log.cc +2 −2 Original line number Diff line number Diff line Loading @@ -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); } Loading
sql/repl_failsafe.cc +1 −1 Original line number Diff line number Diff line Loading @@ -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