Wrong buffer len being passed to strlcpy(). Innocuous

here but...
This commit is contained in:
seanb 2009-10-22 15:53:19 +00:00
parent 1239419a9b
commit 282081cf28
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ str_save(s, ap)
return NULL;
len = strlen(s)+1;
p = alloc(len, ap);
strlcpy(p, s, len+1);
strlcpy(p, s, len);
return (p);
}