All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lubomir Kundrak <lkundrak@skosi.org>
To: grub-devel@gnu.org
Subject: [patch] strncpy misuse in ufs.c]
Date: Tue, 11 Apr 2006 14:08:22 +0200	[thread overview]
Message-ID: <20060411120822.GF48945@meta.morph.sk> (raw)

Now again, to correct list.
Below is the little fix for fs/ufs.c

--- ufs.c.orig  2006-04-10 12:17:10.000000000 +0200
+++ ufs.c       2006-04-10 12:17:32.000000000 +0200
@@ -400,7 +400,7 @@
   unsigned int pos = 0;
   int dirino;

-  grub_strncpy (fpath, path, grub_strlen (path));
+  grub_strncpy (fpath, path, grub_strlen (path)+1);

   /* Skip the first slash.  */
   if (name[0] == '/')

regards,
lubo

-- 
  o	Lubomir Kundrak
 *O*	<lkundrak@skosi.org>, http://skosi.org/~lkundrak/
 (_)	SKOSI -- Slovak OpenSource Initiative




             reply	other threads:[~2006-04-11 12:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-11 12:08 Lubomir Kundrak [this message]
2006-04-12  6:06 ` [patch] strncpy misuse in ufs.c] Lubomir Kundrak
2006-04-12  8:29   ` Marco Gerards

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=20060411120822.GF48945@meta.morph.sk \
    --to=lkundrak@skosi.org \
    --cc=grub-devel@gnu.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.