]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
staging: zcache: using strlcpy instead of strncpy
authorChen Gang <gang.chen@asianux.com>
Fri, 8 Mar 2013 00:47:50 +0000 (08:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:57:45 +0000 (09:57 -0700)
commitaeac64aac538fde7c11038fc6dd2ef4bec4c39a7
tree887a3364aeea8e38110944a24603ee6ce87d1745
parentb6dd012efc8c785f8dc2441ae21ae48561788821
staging: zcache: using strlcpy instead of strncpy

  for NUL terminated string, need alway set '\0' in the end.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zcache/zcache-main.c