~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to commands/loadenv.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-25 19:00:53 UTC
  • mfrom: (1.6.3 upstream)
  • mto: (17.4.13 sid)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20090725190053-uv3lm6ya3zxs77ep
ImportĀ upstreamĀ versionĀ 1.96+20090725

Show diffs side-by-side

added added

removed removed

Lines of Context:
242
242
    part_start = 0;
243
243
 
244
244
  buf = grub_envblk_buffer (envblk);
245
 
  for (p = blocklists, index = 0; p; index += p->length, p = p->next)
 
245
  for (p = blocklists, index = 0; p; p = p->next, index += p->length)
246
246
    {
247
247
      char blockbuf[GRUB_DISK_SECTOR_SIZE];
248
248
 
278
278
    part_start = 0;
279
279
 
280
280
  index = 0;
281
 
  for (p = blocklists; p; index += p->length, p = p->next)
 
281
  for (p = blocklists; p; p = p->next, index += p->length)
282
282
    {
283
283
      if (grub_disk_write (disk, p->sector - part_start,
284
284
                           p->offset, p->length, buf + index))