Module Name:    src
Committed By:   seanb
Date:           Thu Oct 22 15:53:19 UTC 2009

Modified Files:
        src/bin/ksh: misc.c

Log Message:
Wrong buffer len being passed to strlcpy().  Innocuous
here but...


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/bin/ksh/misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/ksh/misc.c
diff -u src/bin/ksh/misc.c:1.13 src/bin/ksh/misc.c:1.14
--- src/bin/ksh/misc.c:1.13	Sat Apr 25 05:11:37 2009
+++ src/bin/ksh/misc.c	Thu Oct 22 15:53:19 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: misc.c,v 1.13 2009/04/25 05:11:37 lukem Exp $	*/
+/*	$NetBSD: misc.c,v 1.14 2009/10/22 15:53:19 seanb Exp $	*/
 
 /*
  * Miscellaneous functions
@@ -6,7 +6,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: misc.c,v 1.13 2009/04/25 05:11:37 lukem Exp $");
+__RCSID("$NetBSD: misc.c,v 1.14 2009/10/22 15:53:19 seanb Exp $");
 #endif
 
 
@@ -96,7 +96,7 @@
 		return NULL;
 	len = strlen(s)+1;
 	p = alloc(len, ap);
-	strlcpy(p, s, len+1);
+	strlcpy(p, s, len);
 	return (p);
 }
 

Reply via email to