~drizzle-trunk/libdrizzle/jenkins-Libdrizzle-75

« back to all changes in this revision

Viewing changes to cli/drizzle_binlogs.c

  • Committer: Continuous Integration
  • Date: 2013-01-17 20:41:23 UTC
  • mfrom: (94.1.1 5.1-fixes)
  • Revision ID: ci@drizzle.org-20130117204123-0wbrs1gcqjlp3xdb
Tags: 5.1.2
Merge lp:~linuxjedi/libdrizzle/5.1-fixes Build: jenkins-Libdrizzle-50

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
{
296
296
  if (len)
297
297
  {
298
 
    if (write(fileno(file), data, len) <= 0)
 
298
    if (fwrite(data, 1, len, file) != len)
299
299
    {
300
300
      printf("Error: binlog: Error writing binary log: %s", strerror(errno));
301
301
      exit(EXIT_FAILURE);