~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.cc

  • Committer: Brian Aker
  • Date: 2008-12-02 16:33:43 UTC
  • mfrom: (632.1.19 devel)
  • Revision ID: brian@tangent.org-20081202163343-007ifg17p0lvjga7
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
1545
1545
                     &error, &error_len, &not_used);
1546
1546
    if (error_len)
1547
1547
    {
1548
 
      strmake(buff, error, cmin(sizeof(buff), (unsigned long)error_len));
 
1548
      length= cmin(sizeof(buff), (unsigned long)error_len);
 
1549
      strncpy(buff, error, length);
 
1550
      buff[length]= '\0';
1549
1551
      strvalue= buff;
1550
1552
      goto err;
1551
1553
    }