Commit 69d4481
committed
6l: fix datblk loop in asmb_elf: sizeof(buf) not sizeof(buf.dbuf)
buf.dbuf is char[1], so sizeof(buf.dbuf)=1. With Dbufslop=100 the
step was 1-100=-99, which got passed as the write count to pwrite,
causing "bad address in syscall". The correct size is sizeof(buf)
(the full union), matching the existing asmb() data loop.
https://claude.ai/code/session_01WGAwvvTwDg2yknFkmZ3qzs1 parent a996a81 commit 69d4481
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | | - | |
280 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
0 commit comments