]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: tidspbridge/pmgr: use strlcpy instead of strncpy
authorChen Gang <gang.chen@asianux.com>
Mon, 21 Jan 2013 09:35:00 +0000 (17:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 22:00:10 +0000 (14:00 -0800)
commit9814a8750e7af236030c237a98bba79f5eb3c214
tree3ccc5ae423dda76f2a2494e464353ad946b9c1f8
parentec7e0aef31e2eece787f7c49df1f031f2a983265
staging: tidspbridge/pmgr: use strlcpy instead of strncpy

  The fields must be null-terminated,
  or next strcpy in dbll_find_dsp_symbol, will cause issue

additoinal info:
  dbll_find_dsp_symbol call find_symbol_callback to get name.
  and then call strcpy to copy the name to upper caller.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
Cc: Omar Ramirez Luna <omar.ramirez@copitl.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/tidspbridge/pmgr/dbll.c