summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pw/grupd.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-08-20 13:24:39 +0000
committerbrian <brian@FreeBSD.org>2001-08-20 13:24:39 +0000
commitd48c427cd5bdebd62fe29b534bab868f697332da (patch)
treecfffe027302e0b8a140748c6626dc30e92913ec1 /usr.sbin/pw/grupd.c
parent016b1a255a4619a8b85d12e8ef931c0dfa1e13ae (diff)
downloadFreeBSD-src-d48c427cd5bdebd62fe29b534bab868f697332da.zip
FreeBSD-src-d48c427cd5bdebd62fe29b534bab868f697332da.tar.gz
Handle snprintf() returning -1.
MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/pw/grupd.c')
-rw-r--r--usr.sbin/pw/grupd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pw/grupd.c b/usr.sbin/pw/grupd.c
index edff76d..a2a0282 100644
--- a/usr.sbin/pw/grupd.c
+++ b/usr.sbin/pw/grupd.c
@@ -134,7 +134,7 @@ gr_update(struct group * grp, char const * group, int mode)
char *grbuf = NULL;
ENDGRENT();
- l = snprintf(pfx, sizeof pfx, "%s:", group);
+ snprintf(pfx, sizeof pfx, "%s:", group);
/*
* Update the group file
OpenPOWER on IntegriCloud