diff options
Diffstat (limited to 'lib/libc/net/res_debug.c')
-rw-r--r-- | lib/libc/net/res_debug.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/net/res_debug.c b/lib/libc/net/res_debug.c index 908ad421b7b..c2725395a04 100644 --- a/lib/libc/net/res_debug.c +++ b/lib/libc/net/res_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_debug.c,v 1.8 1997/07/09 01:08:51 millert Exp $ */ +/* $OpenBSD: res_debug.c,v 1.9 1998/03/19 00:30:06 millert Exp $ */ /* * ++Copyright++ 1985, 1990, 1993 @@ -82,7 +82,7 @@ static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_debug.c,v 1.8 1997/07/09 01:08:51 millert Exp $"; +static char rcsid[] = "$OpenBSD: res_debug.c,v 1.9 1998/03/19 00:30:06 millert Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -437,11 +437,12 @@ __p_fqnname(cp, msg, msglen, name, namelen) if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0) return (NULL); newlen = strlen (name); - if (newlen == 0 || name[newlen - 1] != '.') + if (newlen == 0 || name[newlen - 1] != '.') { if (newlen+1 >= namelen) /* Lack space for final dot */ return (NULL); else strcpy(name + newlen, "."); + } return (cp + n); } |