[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch] strncpy misuse in ufs.c
From: |
Lubomir Kundrak |
Subject: |
[patch] strncpy misuse in ufs.c |
Date: |
Mon, 10 Apr 2006 12:34:48 +0200 |
User-agent: |
Mutt/1.4.2.1i |
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* <address@hidden>, http://skosi.org/~lkundrak/
(_) SKOSI -- Slovak OpenSource Initiative
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [patch] strncpy misuse in ufs.c,
Lubomir Kundrak <=