diff options
Diffstat (limited to 'src/lib/libc/net/res_init.c')
-rw-r--r-- | src/lib/libc/net/res_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/res_init.c b/src/lib/libc/net/res_init.c index 099aa04e30..c55c7763a4 100644 --- a/src/lib/libc/net/res_init.c +++ b/src/lib/libc/net/res_init.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: res_init.c,v 1.26 2002/06/27 10:14:02 itojun Exp $ */ | 1 | /* $OpenBSD: res_init.c,v 1.27 2002/07/25 21:13:45 deraadt Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1989, 1993 | 4 | * ++Copyright++ 1985, 1989, 1993 |
@@ -64,7 +64,7 @@ | |||
64 | static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; | 64 | static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; |
65 | static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; | 65 | static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; |
66 | #else | 66 | #else |
67 | static char rcsid[] = "$OpenBSD: res_init.c,v 1.26 2002/06/27 10:14:02 itojun Exp $"; | 67 | static char rcsid[] = "$OpenBSD: res_init.c,v 1.27 2002/07/25 21:13:45 deraadt Exp $"; |
68 | #endif | 68 | #endif |
69 | #endif /* LIBC_SCCS and not lint */ | 69 | #endif /* LIBC_SCCS and not lint */ |
70 | 70 | ||
@@ -211,7 +211,7 @@ res_init() | |||
211 | _res.nscount = 1; | 211 | _res.nscount = 1; |
212 | _res.ndots = 1; | 212 | _res.ndots = 1; |
213 | _res.pfcode = 0; | 213 | _res.pfcode = 0; |
214 | strncpy(_res.lookups, "f", sizeof _res.lookups); | 214 | strlcpy(_res.lookups, "f", sizeof _res.lookups); |
215 | 215 | ||
216 | /* Allow user to override the local domain definition */ | 216 | /* Allow user to override the local domain definition */ |
217 | if (issetugid() == 0 && (cp = getenv("LOCALDOMAIN")) != NULL) { | 217 | if (issetugid() == 0 && (cp = getenv("LOCALDOMAIN")) != NULL) { |
@@ -253,7 +253,7 @@ res_init() | |||
253 | line[sizeof(name) - 1] == '\t')) | 253 | line[sizeof(name) - 1] == '\t')) |
254 | 254 | ||
255 | if ((fp = fopen(_PATH_RESCONF, "r")) != NULL) { | 255 | if ((fp = fopen(_PATH_RESCONF, "r")) != NULL) { |
256 | strncpy(_res.lookups, "bf", sizeof _res.lookups); | 256 | strlcpy(_res.lookups, "bf", sizeof _res.lookups); |
257 | 257 | ||
258 | /* read the config file */ | 258 | /* read the config file */ |
259 | buf[0] = '\0'; | 259 | buf[0] = '\0'; |