~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log_event.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-03 07:42:39 UTC
  • mto: (656.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 665.
  • Revision ID: dev@torum.net-20081203074239-4qwr4u7prq7uqxet
First pass of replacing MySQL's my_stpcpy() with appropriate libc calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
  buf= int10_to_str(event_server_id, buf, 10);
306
306
  *buf++ = '-';
307
307
  res= int10_to_str(file_id, buf, 10);
308
 
  my_stpcpy(res, ext);                             // Add extension last
 
308
  strcpy(res, ext);                             // Add extension last
309
309
  return res;                                   // Pointer to extension
310
310
}
311
311
 
3357
3357
  fname_len= (uint) (my_stpcpy(ext, ".data") - fname);
3358
3358
  if (write_base(&file))
3359
3359
  {
3360
 
    my_stpcpy(ext, ".info"); // to have it right in the error message
 
3360
    strcpy(ext, ".info"); // to have it right in the error message
3361
3361
    rli->report(ERROR_LEVEL, my_errno,
3362
3362
                _("Error in Create_file event: could not write to file '%s'"),
3363
3363
                fname_buf);
3588
3588
  char fname[FN_REFLEN+10];
3589
3589
  char *ext= slave_load_file_stem(fname, file_id, server_id, ".data");
3590
3590
  (void) my_delete(fname, MYF(MY_WME));
3591
 
  my_stpcpy(ext, ".info");
 
3591
  strcpy(ext, ".info");
3592
3592
  (void) my_delete(fname, MYF(MY_WME));
3593
3593
  return 0;
3594
3594
}
5055
5055
  table_list->next_global= table_list->next_local= 0;
5056
5056
  table_list->table_id= m_table_id;
5057
5057
  table_list->updating= 1;
5058
 
  my_stpcpy(table_list->db, m_dbnam);
5059
 
  my_stpcpy(table_list->table_name, m_tblnam);
 
5058
  strcpy(table_list->db, m_dbnam);
 
5059
  strcpy(table_list->table_name, m_tblnam);
5060
5060
 
5061
5061
  int error= 0;
5062
5062