diff options
Diffstat (limited to 'sunrpc/netname.c')
-rw-r--r-- | sunrpc/netname.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sunrpc/netname.c b/sunrpc/netname.c index be6c2f2ae1..176967a905 100644 --- a/sunrpc/netname.c +++ b/sunrpc/netname.c @@ -82,6 +82,7 @@ host2netname (char netname[MAXNETNAMELEN + 1], const char *host, p = dot_in_host; if (p) { + ++p; strncpy (domainname, p, MAXHOSTNAMELEN); domainname[MAXHOSTNAMELEN] = '\0'; } |