Jim Meyering wrote:
> From: Jim Meyering
>
> Each of the protocols[i].name strings (statically declared above)
> has length less than 16, so this use of strncpy is misleading:
> strncpy(pSMB->DialectsArray+count, protocols[i].name, 16);
> Besides, if a new name were added with length N >= 16, t
Bastien ROUCARIES wrote:
> Le 20 août 2012 19:29, "Jim Meyering" a écrit :
>>
>> From: Jim Meyering
>>
>> Each of the protocols[i].name strings (statically declared above)
>> has length less than 16, so this use of strncpy is misleading:
>> strncpy(pSMB->DialectsArray+count, protocols[i].name,
From: Jim Meyering
Each of the protocols[i].name strings (statically declared above)
has length less than 16, so this use of strncpy is misleading:
strncpy(pSMB->DialectsArray+count, protocols[i].name, 16);
Besides, if a new name were added with length N >= 16, the existing
strncpy-using code w
3 matches
Mail list logo