aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-05-10 10:15:36 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-05-10 10:15:36 +0000
commit36dc2e68859cd2abbc2c3cb42ddc71c921dc3a2d (patch)
tree6b86813c5cd09760bc1bb809b0fa162f1b086f9c /usr.sbin
parenta84caa72b0df2b9c5bab951c9cae4fd43f27bc6f (diff)
Notes
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pw/pw_conf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/pw/pw_conf.c b/usr.sbin/pw/pw_conf.c
index 46474a121c06..e988f4bdf121 100644
--- a/usr.sbin/pw/pw_conf.c
+++ b/usr.sbin/pw/pw_conf.c
@@ -213,15 +213,12 @@ char *
newstr(char const * p)
{
char *q;
- size_t l;
if ((p = unquote(p)) == NULL)
return (NULL);
- l = strlen(p) + 1;
-
- if ((q = strndup(p, l)) == NULL)
- err(1, "strndup()");
+ if ((q = strdup(p)) == NULL)
+ err(1, "strdup()");
return (q);
}