linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Dmitry Torokhov" <dmitry.torokhov@gmail.com>
To: Roel Kluin <12o3l@tiscali.nl>
Cc: linux-input@atrey.karlin.mff.cuni.cz
Subject: Re: [PATCH] Fix incorrect usage of strncpy and strncat in i8042_pnp_kbd_probe(); drivers/input/serio/i8042-x86ia64io.h
Date: Mon, 5 Nov 2007 16:08:18 -0500	[thread overview]
Message-ID: <d120d5000711051308p62094becnce4fdb57cb30687a@mail.gmail.com> (raw)
In-Reply-To: <472F7C02.9040600@tiscali.nl>

Hi Roel,

On Nov 5, 2007 3:24 PM, Roel Kluin <12o3l@tiscali.nl> 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

  reply	other threads:[~2007-11-05 21:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05 20:24 [PATCH] Fix incorrect usage of strncpy and strncat in i8042_pnp_kbd_probe(); drivers/input/serio/i8042-x86ia64io.h Roel Kluin
2007-11-05 21:08 ` Dmitry Torokhov [this message]
2007-11-05 22:30   ` Roel Kluin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d120d5000711051308p62094becnce4fdb57cb30687a@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=12o3l@tiscali.nl \
    --cc=linux-input@atrey.karlin.mff.cuni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).