summaryrefslogtreecommitdiffstats
path: root/usr.sbin/burncd/burncd.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2000-01-24 20:29:42 +0000
committersos <sos@FreeBSD.org>2000-01-24 20:29:42 +0000
commitff67a728896198b2e1e203c6b280755f7bdcd480 (patch)
treeb9e37acda58ee16c71336c7748b7e553e58c1022 /usr.sbin/burncd/burncd.c
parent15376e5b0cd969a2ab627db2c697f40dd6709c51 (diff)
downloadFreeBSD-src-ff67a728896198b2e1e203c6b280755f7bdcd480.zip
FreeBSD-src-ff67a728896198b2e1e203c6b280755f7bdcd480.tar.gz
Update to keep track of next_writeable in userland.
Recompile both kernel & burncd !!
Diffstat (limited to 'usr.sbin/burncd/burncd.c')
-rw-r--r--usr.sbin/burncd/burncd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/burncd/burncd.c b/usr.sbin/burncd/burncd.c
index 493e14d..d7d4984 100644
--- a/usr.sbin/burncd/burncd.c
+++ b/usr.sbin/burncd/burncd.c
@@ -151,7 +151,7 @@ main(int argc, char **argv)
fprintf(stderr, "writing from file %s size %d KB\n",
argv[arg], stat.st_size / 1024);
}
- lseek(fd, 0, SEEK_SET);
+ lseek(fd, addr * block_size, SEEK_SET);
size = 0;
while ((count = read(file, buf, block_size * BLOCKS)) > 0) {
OpenPOWER on IntegriCloud