walter harms wrote: >> + while ((len=safe_read(fd, buf, 4096)) > 0) { > >sorry for being late of that .. >with sizeof(buf) instead of 4096 you can modify buf[] only ... Noted, thank you. I really should get into the habit of doing that. Ron