All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] strncpy misuse in ufs.c]
@ 2006-04-11 12:08 Lubomir Kundrak
  2006-04-12  6:06 ` Lubomir Kundrak
  0 siblings, 1 reply; 3+ messages in thread
From: Lubomir Kundrak @ 2006-04-11 12:08 UTC (permalink / raw)
  To: grub-devel

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-12  8:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 12:08 [patch] strncpy misuse in ufs.c] Lubomir Kundrak
2006-04-12  6:06 ` Lubomir Kundrak
2006-04-12  8:29   ` Marco Gerards

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.