sysdump, be_srec: increment the address
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 22 Jun 2010 20:39:44 +0000 (13:39 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 22 Jun 2010 20:39:44 +0000 (13:39 -0700)
Need to increment the address for each srec...

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
com32/sysdump/be_srec.c

index 3b52b1a..fc69c88 100644 (file)
@@ -68,6 +68,7 @@ static int be_srec_write(struct backend *be)
        write_srecord(chunk, 4, offset, '3', buf);
        buf += chunk;
        len -= chunk;
+       offset += chunk;
     }
 
     /* Write termination record */