summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/res_debug.c
diff options
context:
space:
mode:
authormillert <>1998-03-19 00:30:08 +0000
committermillert <>1998-03-19 00:30:08 +0000
commite76ed5e581d1a3240120ce9416a991fc1f21a449 (patch)
treefb87a851d42df3f26db05b6d59e8af1788608727 /src/lib/libc/net/res_debug.c
parent1b87c4e2550acaf4647f9cecfd5a57990817788e (diff)
downloadopenbsd-e76ed5e581d1a3240120ce9416a991fc1f21a449.tar.gz
openbsd-e76ed5e581d1a3240120ce9416a991fc1f21a449.tar.bz2
openbsd-e76ed5e581d1a3240120ce9416a991fc1f21a449.zip
some -Wall
Diffstat (limited to '')
-rw-r--r--src/lib/libc/net/res_debug.c7
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 @@
82static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; 82static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93";
83static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; 83static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $";
84#else 84#else
85static char rcsid[] = "$OpenBSD: res_debug.c,v 1.8 1997/07/09 01:08:51 millert Exp $"; 85static 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