[Toybox] [PATCH] Fix wc -c optimization.

enh enh at google.com
Sat Feb 13 09:41:06 PST 2016


On Sat, Feb 13, 2016 at 8:37 AM, Rob Landley <rob at landley.net> wrote:
> On 02/12/2016 10:16 AM, enh wrote:
>> Check the fstat(2) return value rather than read uninitialized memory if
>> it failed, and add a special case for files that claim to be zero-length
>> but aren't (as is common in /proc on Linux).
>> ---
>>  toys/posix/wc.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Attachment?

d'oh! attached.

-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-wc-c-optimization.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160213/9f7a018a/attachment-0005.bin>


More information about the Toybox mailing list