wok-stable rev 12271

runcom: fix disk image
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 28 13:05:44 2012 +0200 (2012-04-28)
parents 21314cf70e7d
children 56d4167f3344
files runcom/stuff/runcom.c
line diff
     1.1 --- a/runcom/stuff/runcom.c	Fri Apr 27 13:52:36 2012 +0200
     1.2 +++ b/runcom/stuff/runcom.c	Sat Apr 28 13:05:44 2012 +0200
     1.3 @@ -489,7 +489,7 @@
     1.4                  goto failed;
     1.5              }
     1.6      	}
     1.7 -        if (lseek(fd, first_sector, SEEK_CUR) >= 0 &&
     1.8 +        if (lseek(fd, first_sector, SEEK_SET) >= 0 &&
     1.9              read(fd, buffer, sector_count) == sector_count) {
    1.10              r->eax &= ~0xff00;
    1.11              r->eflags &= ~CF_MASK;