diff options
Diffstat (limited to 'nis/nis_verifygroup.c')
-rw-r--r-- | nis/nis_verifygroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nis_verifygroup.c b/nis/nis_verifygroup.c index e57f16589a..6a8ab01bd7 100644 --- a/nis/nis_verifygroup.c +++ b/nis/nis_verifygroup.c @@ -38,8 +38,8 @@ nis_verifygroup (const_nis_name group) cp2 = nis_domain_of_r (group, domainbuf, sizeof (domainbuf) - 1); if (cp2 != NULL && strlen (cp2) > 0) { - cp = stpcpy (cp, "."); - strcpy (cp, cp2); + *cp++ = '.'; + stpcpy (cp, cp2); } res = nis_lookup (buf, 0); status = res->status; |