~ubuntu-branches/ubuntu/karmic/gimp/karmic-security

« back to all changes in this revision

Viewing changes to tools/test-clipboard.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2008-10-06 13:30:41 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20081006133041-axco233xt49jobn7
Tags: 2.6.0-1ubuntu1
* Sync on debian and new version (lp: #276839)
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch:
  - updated some strings for ubuntu
* debian/rules:
  - updated translation templates

Show diffs side-by-side

added added

removed removed

Lines of Context:
366
366
                                                           FALSE));
367
367
  if (data)
368
368
    {
369
 
      gsize bytes;
370
 
      gint  fd;
 
369
      gint fd;
371
370
 
372
371
      fd = open (filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
373
372
 
378
377
          return FALSE;
379
378
        }
380
379
 
381
 
      bytes = data->length * data->format / 8;
382
 
 
383
 
      if (write (fd, data->data, bytes) < bytes)
 
380
      if (write (fd, data->data, data->length) < data->length)
384
381
        {
385
382
          close (fd);
386
383
          g_printerr ("%s: write() failed: %s",