~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzlebinlog.cc

  • Committer: Monty
  • Date: 2008-10-02 14:34:07 UTC
  • Revision ID: mordred@scylla.inaugust.com-20081002143407-id6de0nl3trrna4j
Fixed some max/min misses.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1804
1804
      my_off_t length,tmp;
1805
1805
      for (length= start_position_mot ; length > 0 ; length-=tmp)
1806
1806
      {
1807
 
  tmp=min(length,sizeof(buff));
1808
 
  if (my_b_read(file, buff, (uint) tmp))
 
1807
        tmp=cmin(length,sizeof(buff));
 
1808
        if (my_b_read(file, buff, (uint) tmp))
1809
1809
        {
1810
1810
          error("Failed reading from file.");
1811
1811
          goto err;