~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/winicon/icosave.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2008-08-22 11:50:05 UTC
  • mfrom: (0.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 34.
  • Revision ID: james.westby@ubuntu.com-20080822115005-yxj5svf3v9x1mkr7
Tags: upstream-2.4.7
ImportĀ upstreamĀ versionĀ 2.4.7

Show diffs side-by-side

added added

removed removed

Lines of Context:
1082
1082
      entries[i].size = ftell (fp) - entries[i].offset;
1083
1083
    }
1084
1084
 
 
1085
  for (i = 0; i < info.num_icons; i++)
 
1086
    {
 
1087
      entries[i].planes = GUINT16_TO_LE (entries[i].planes);
 
1088
      entries[i].bpp    = GUINT16_TO_LE (entries[i].bpp);
 
1089
      entries[i].size   = GUINT32_TO_LE (entries[i].size);
 
1090
      entries[i].offset = GUINT32_TO_LE (entries[i].offset);
 
1091
    }
 
1092
 
1085
1093
  if (fseek (fp, sizeof(IcoFileHeader), SEEK_SET) < 0
1086
1094
      || fwrite (entries, sizeof (IcoFileEntry), info.num_icons, fp) <= 0)
1087
1095
    {