~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_base.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-01 11:00:41 UTC
  • mto: (632.1.17 devel)
  • mto: This revision was merged to the branch mainline in revision 637.
  • Revision ID: dev@torum.net-20081201110041-gia57w4pw4qwh13t
Third pass of replacing MySQL's strmake() with libc calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
4412
4412
      We can't do this in Item_field as this would change the
4413
4413
      'name' of the item which may be used in the select list
4414
4414
    */
4415
 
    strmake(name_buff, db, sizeof(name_buff)-1);
 
4415
    strncpy(name_buff, db, sizeof(name_buff)-1);
4416
4416
    my_casedn_str(files_charset_info, name_buff);
4417
4417
    db= name_buff;
4418
4418
  }
5732
5732
      We can't do this in Item_field as this would change the
5733
5733
      'name' of the item which may be used in the select list
5734
5734
    */
5735
 
    strmake(name_buff, db_name, sizeof(name_buff)-1);
 
5735
    strncpy(name_buff, db_name, sizeof(name_buff)-1);
5736
5736
    my_casedn_str(files_charset_info, name_buff);
5737
5737
    db_name= name_buff;
5738
5738
  }