Re: [PATCH] lib: string.c: Added a funktion function strzcpy

From: Andi Kleen
Date: Wed Sep 24 2014 - 18:55:35 EST


> Thought that I was still fairly clear, or that I just assumed that
> everyone was more or less familiar with the problems between strncpy
> strlcpy etc.
> Did not think all that should be includerad in chang log.

I don't think you need to write a novel.

So the basic issue is that you're not sure if you can replace
strncpy with strlcpy (due to not knowing what the padding
requirements are), but you still want to make sure everything
is zero terminated.

That should have been in the changelog.

-Andi

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/