lkml.org 
[lkml]   [2014]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH] staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate
Date
Replacing strncpy with strlcpy to avoid strings that lacks null terminate.
There is also a wrong use of strncat, it should have used sizeof - strlen.

This was found using a static code analysis program called cppcheck.

Rickard Strandqvist (1):
staging: ced1401: userspace: use1401.c: Cleaning up potential strncpy missing null-terminate

drivers/staging/ced1401/userspace/use1401.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)

--
1.7.10.4



\
 
 \ /
  Last update: 2014-06-15 01:01    [W:0.617 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site