summaryrefslogtreecommitdiff
path: root/core/fs
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-11-14 13:14:49 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-11-14 13:14:49 -0800
commitc11b65a96eef32eedea52f7b594c320a15062baf (patch)
tree9f2dfed617995b73f36c427c02f7d8c8a8bbc23b /core/fs
parent89d5fe9a7f96b29d1a24e4a8ab7f81764c52e2e6 (diff)
downloadsyslinux-c11b65a96eef32eedea52f7b594c320a15062baf.tar.gz
core, pxe: Fix handling of unqualified DNS names
Actually append the domain name to the end of an unqualified DNS name like we should have done all along. Reported-by: Gene Cumm <gene.cumm@gmail.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/fs')
-rw-r--r--core/fs/pxe/dnsresolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fs/pxe/dnsresolv.c b/core/fs/pxe/dnsresolv.c
index 2b263fad..641ea389 100644
--- a/core/fs/pxe/dnsresolv.c
+++ b/core/fs/pxe/dnsresolv.c
@@ -215,7 +215,7 @@ uint32_t dns_resolv(const char *name)
if (!dots) {
p--; /* Remove final null */
/* Uncompressed DNS label set so it ends in null */
- strcpy(p, LocalDomain);
+ p = stpcpy(p, LocalDomain);
}
/* Fill the DNS query packet */