Frank Knobbe wrote:
> On Mon, 2002-11-18 at 17:10, Andrew Griffiths wrote:
>
>
>>Another thing to use is consistency, for example,
>>
> Of course in your example you allow dst to overflow in the strncpy.
> Using
> strncpy(dst, user_supplied_data, sizeof(dst)-1);
> would have prevented that if ...
> On Mon, 2002-11-18 at 17:10, Andrew Griffiths wrote:
>
>
>>Another thing to use is consistency, for example,
>>
> Of course in your example you allow dst to overflow in the strncpy.
> Using
> strncpy(dst, user_supplied_data, sizeof(dst)-1);
> would have prevented that if ...
[ more ]