Thread (3 messages) 3 messages, 2 authors, 2007-11-05

Re: [PATCH] Fix incorrect usage of strncpy and strncat in i8042_pnp_kbd_probe(); drivers/input/serio/i8042-x86ia64io.h

From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
Date: 2007-11-05 21:08:18

Hi Roel,

On Nov 5, 2007 3:24 PM, Roel Kluin [off-list ref] wrote:
See http://www.gratisoft.us/todd/papers/strlcpy.html
--
Fix incorrect length argument for  strncpy and strncat by replacing them with
What is incorrect about the argument?
respectively strlcpy and strlcat
I will gladly take a patch replacing strncat with strlcat but don't
error out if the buffer is too small - it is oK if PNP name is printed
truncated, it does not affect KBC operations.

Thanks.

-- 
Dmitry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help