~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/charset.c

mergingĀ fromĀ main

Show diffs side-by-side

added added

removed removed

Lines of Context:
456
456
        }
457
457
      }
458
458
      
459
 
      strmov(get_charsets_dir(fname), MY_CHARSET_INDEX);
 
459
      stpcpy(get_charsets_dir(fname), MY_CHARSET_INDEX);
460
460
      error= my_read_charset_file(fname,myflags);
461
461
      charset_initialized=1;
462
462
    }
556
556
  if (!cs && (flags & MY_WME))
557
557
  {
558
558
    char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)], cs_string[23];
559
 
    strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX);
 
559
    stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
560
560
    cs_string[0]='#';
561
561
    int10_to_str(cs_number, cs_string+1, 10);
562
562
    my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_string, index_file);
576
576
  if (!cs && (flags & MY_WME))
577
577
  {
578
578
    char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
579
 
    strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX);
 
579
    stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
580
580
    my_error(EE_UNKNOWN_COLLATION, MYF(ME_BELL), cs_name, index_file);
581
581
  }
582
582
 
599
599
  if (!cs && (flags & MY_WME))
600
600
  {
601
601
    char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
602
 
    strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX);
 
602
    stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
603
603
    my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file);
604
604
  }
605
605