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