From 3121cc0437913ae426bcb18d99ca304e2903d173 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 7 Sep 1998 15:06:36 +0000 Subject: Update. * resolv/res_debug.c: Likewise. --- resolv/res_debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resolv') diff --git a/resolv/res_debug.c b/resolv/res_debug.c index 92b8fa1..eadb020 100644 --- a/resolv/res_debug.c +++ b/resolv/res_debug.c @@ -452,11 +452,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); } -- cgit v1.1