~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzletest.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-10 18:33:08 UTC
  • mto: (670.1.11 devel)
  • mto: This revision was merged to the branch mainline in revision 672.
  • Revision ID: dev@torum.net-20081210183308-mb6a5x0sbl1dhc5c
Replaced MySQL's my_stpncpy() with libc and c++ calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
3081
3081
    die("drizzle_store_result() retuned NULL for '%s'", query);
3082
3082
  if (!(row = drizzle_fetch_row(res)))
3083
3083
    die("empty result in show master status");
3084
 
  my_stpncpy(master_pos.file, row[0], sizeof(master_pos.file)-1);
 
3084
  strncpy(master_pos.file, row[0], sizeof(master_pos.file)-1);
3085
3085
  master_pos.pos = strtoul(row[1], (char**) 0, 10);
3086
3086
  drizzle_free_result(res);
3087
3087
  return(0);
4611
4611
      tty_password= 1;
4612
4612
    break;
4613
4613
  case 't':
4614
 
    my_stpncpy(TMPDIR, argument, sizeof(TMPDIR));
 
4614
    strncpy(TMPDIR, argument, sizeof(TMPDIR));
4615
4615
    break;
4616
4616
  case 'A':
4617
4617
    if (!embedded_server_arg_count)