mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Update.
* resolv/res_debug.c: Likewise.
This commit is contained in:
parent
94b78bb204
commit
3121cc0437
@ -21,6 +21,7 @@
|
|||||||
* string/strxfrm.c: Likewise.
|
* string/strxfrm.c: Likewise.
|
||||||
* argp/argp-help.c: Likewise.
|
* argp/argp-help.c: Likewise.
|
||||||
* argp/argp-parse.c: Likewise.
|
* argp/argp-parse.c: Likewise.
|
||||||
|
* resolv/res_debug.c: Likewise.
|
||||||
|
|
||||||
1998-09-07 09:58 Ulrich Drepper <drepper@cygnus.com>
|
1998-09-07 09:58 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
@ -452,11 +452,12 @@ __p_fqnname(cp, msg, msglen, name, namelen)
|
|||||||
if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0)
|
if ((n = dn_expand(msg, cp + msglen, cp, name, namelen)) < 0)
|
||||||
return (NULL);
|
return (NULL);
|
||||||
newlen = strlen (name);
|
newlen = strlen (name);
|
||||||
if (newlen == 0 || name[newlen - 1] != '.')
|
if (newlen == 0 || name[newlen - 1] != '.') {
|
||||||
if (newlen+1 >= namelen) /* Lack space for final dot */
|
if (newlen+1 >= namelen) /* Lack space for final dot */
|
||||||
return (NULL);
|
return (NULL);
|
||||||
else
|
else
|
||||||
strcpy(name + newlen, ".");
|
strcpy(name + newlen, ".");
|
||||||
|
}
|
||||||
return (cp + n);
|
return (cp + n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user