EEh.... should actually read

--- 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, sizeof (fpath)+);

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


On Tue, Apr 11, 2006 at 02:08:22PM +0200, Lubomir Kundrak wrote:
> X-Original-To: [EMAIL PROTECTED]
> Delivered-To: [EMAIL PROTECTED]
> Date: Tue, 11 Apr 2006 14:08:22 +0200
> From: Lubomir Kundrak <[EMAIL PROTECTED]>
> To: grub-devel@gnu.org
> Mail-Followup-To: Lubomir Kundrak <[EMAIL PROTECTED]>, grub-devel@gnu.org
> User-Agent: Mutt/1.4.2.1i
> Subject: [patch] strncpy misuse in ufs.c]
> X-BeenThere: grub-devel@gnu.org
> X-Mailman-Version: 2.1.5
> Precedence: list
> Reply-To: The development of GRUB 2 <grub-devel@gnu.org>
> List-Id: The development of GRUB 2 <grub-devel.gnu.org>
> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/grub-devel>,
>       <mailto:[EMAIL PROTECTED]>
> List-Archive: <http://lists.gnu.org/pipermail/grub-devel>
> List-Post: <mailto:grub-devel@gnu.org>
> List-Help: <mailto:[EMAIL PROTECTED]>
> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/grub-devel>,
>       <mailto:[EMAIL PROTECTED]>
> Errors-To: [EMAIL PROTECTED]
> 
> 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*  <[EMAIL PROTECTED]>, http://skosi.org/~lkundrak/
>  (_)  SKOSI -- Slovak OpenSource Initiative
> 
> 
> 
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel

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


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to