Re: [PATCH] misc: ti-st: st_kim.c: Cleaning up missing null-terminate after strncpy call

From: Wolfram Sang
Date: Mon Aug 11 2014 - 05:14:54 EST



> > strncpy(kim_data->dev_name, buf, count);
> > + kim_data->dev_name[count - 1] = '\n';
>
> Of course this does not add termination, but adds a newline at the end of the buffer? Huh?

strlcpy?

Attachment: signature.asc
Description: Digital signature