Applied, thanks!

I added code to only do a reading pass if the file is a regular file:

think about "less /dev/SOMETHING".


On Tue, Jul 21, 2015 at 5:18 PM, Ron Yorston <[email protected]> wrote:
> 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
> _______________________________________________
> busybox mailing list
> [email protected]
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to