~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/charset.c

  • Committer: Brian Aker
  • Date: 2008-09-28 03:20:53 UTC
  • mto: This revision was merged to the branch mainline in revision 413.
  • Revision ID: brian@tangent.org-20080928032053-rclc4iiwmwedsf73
Work on removing GNU specific calls.

Show diffs side-by-side

added added

removed removed

Lines of Context:
192
192
        }
193
193
      }
194
194
      
195
 
      stpcpy(get_charsets_dir(fname), MY_CHARSET_INDEX);
 
195
      my_stpcpy(get_charsets_dir(fname), MY_CHARSET_INDEX);
196
196
      charset_initialized=1;
197
197
    }
198
198
    pthread_mutex_unlock(&THR_LOCK_charset);
289
289
  if (!cs && (flags & MY_WME))
290
290
  {
291
291
    char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)], cs_string[23];
292
 
    stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
 
292
    my_stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
293
293
    cs_string[0]='#';
294
294
    int10_to_str(cs_number, cs_string+1, 10);
295
295
    my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_string, index_file);
309
309
  if (!cs && (flags & MY_WME))
310
310
  {
311
311
    char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
312
 
    stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
 
312
    my_stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
313
313
    my_error(EE_UNKNOWN_COLLATION, MYF(ME_BELL), cs_name, index_file);
314
314
  }
315
315
 
332
332
  if (!cs && (flags & MY_WME))
333
333
  {
334
334
    char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)];
335
 
    stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
 
335
    my_stpcpy(get_charsets_dir(index_file),MY_CHARSET_INDEX);
336
336
    my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file);
337
337
  }
338
338