diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-09-07 15:06:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-09-07 15:06:36 +0000 |
commit | 3121cc0437913ae426bcb18d99ca304e2903d173 (patch) | |
tree | 4121d3f9cd551b6b44afe1afd924c2c010253da9 /resolv/res_debug.c | |
parent | 94b78bb204a9606254c1088a4bb6fa00859a9d82 (diff) | |
download | glibc-3121cc0437913ae426bcb18d99ca304e2903d173.tar glibc-3121cc0437913ae426bcb18d99ca304e2903d173.tar.gz glibc-3121cc0437913ae426bcb18d99ca304e2903d173.tar.bz2 glibc-3121cc0437913ae426bcb18d99ca304e2903d173.zip |
Update.
* resolv/res_debug.c: Likewise.
Diffstat (limited to 'resolv/res_debug.c')
-rw-r--r-- | resolv/res_debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/resolv/res_debug.c b/resolv/res_debug.c index 92b8fa1d1a..eadb0208b9 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); } |