~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_connect.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:
262
262
    server_capabilites|= CLIENT_COMPRESS;
263
263
#endif /* HAVE_COMPRESS */
264
264
 
265
 
    end= my_stpncpy(buff, server_version, SERVER_VERSION_LENGTH) + 1;
 
265
    end= strncpy(buff, server_version, SERVER_VERSION_LENGTH);
 
266
    end+= SERVER_VERSION_LENGTH+1;
 
267
 
266
268
    int4store((unsigned char*) end, session->thread_id);
267
269
    end+= 4;
268
270
    /*