From 3d7cec97446cf3b7f7c6b5d1dce7f065353a593b Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 25 Jan 2006 21:33:30 +0000 Subject: One goto is now no gotos. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2904 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dns.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dns.cpp') 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: -- cgit v1.2.3