On 07/26/2014 03:59 PM, Andreas Schwab wrote:
> Chen Gang <gang.chen.5...@gmail.com> writes:
> 
>> If we need let custom_builtin_name[*] not only zero terminated, but also
>> zero pad, we need pass '4' to strncpy() instead of '5', that also will
>> clear all doubts.
> 
> If you pass 5 to strncpy to copy a string of at most 4 characters you
> get zero-termination for free.
> 

Yes. So at least, at present, it is no issue, so if we are focusing on
solving issues, this patch can be skipped.

And then I will continue discussing it in the other thread, please check
that.

Thanks.
-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed

Reply via email to