Hacker News new | ask | show | jobs
by dar8919 4424 days ago
The second code snippet looks wrong,

write(out, buf, (r - w)) should be write(out, buf + w, r - w)