On Thu, 2019-07-25 at 16:52 +0530, NitinGote wrote:
> From: Nitin Gote <nitin.r.g...@intel.com>
> 
> Added check in checkpatch.pl to deprecate strcpy(), strlcpy() and
> strncpy() in favor of stracpy().
[]
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
[]
> +our %deprecated_string_apis = (
> +     "strcpy"                => "stracpy",
> +     "strlcpy"               => "stracpy",
> +     "strncpy"               => "stracpy - for non-NUL-terminated uses, 
> strncpy dest should be __nonstring",
> +);

Maybe:

our %deprecated_string_apis = (
        "strcpy"                => "stracpy or strscpy",
        "strlcpy"               => "stracpy or strscpy",
        "strncpy"               => "stracpy or strscpy - for non-NUL-terminated 
uses, strncpy dest should be __nonstring",
);


Reply via email to