~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to commands/loadenv.c

ImportĀ upstreamĀ versionĀ 1.97~beta3

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; p = p->next, index += p->length)
 
245
  for (p = blocklists, index = 0; p; index += p->length, p = p->next)
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; p = p->next, index += p->length)
 
281
  for (p = blocklists; p; index += p->length, p = p->next)
282
282
    {
283
283
      if (grub_disk_write (disk, p->sector - part_start,
284
284
                           p->offset, p->length, buf + index))