summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-25 21:33:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-01-25 21:33:30 +0000
commit3d7cec97446cf3b7f7c6b5d1dce7f065353a593b (patch)
tree7e55a8b546b136ddad276f9e6a377f8176e675b9 /src
parent1bc39e97ccdbfd84e533d6dc6bf266102a4060bd (diff)
One goto is now no gotos.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2904 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/dns.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index f9411234d..123901f8a 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -665,7 +665,8 @@ char* DNS::dns_getresult_s(const int cfd, char *res) { /* retrieve result of DNS
alist->next = NULL;
break;
}
- goto defaultcase;
+ memcpy(res,&h.payload[i],rr.rdlength);
+ res[rr.rdlength] = '\0';
break;
default:
defaultcase: