Update to recent ObjFW changes.
This commit is contained in:
parent
7b07a24ec4
commit
7c35be965c
5 changed files with 51 additions and 47 deletions
|
@ -102,7 +102,9 @@
|
|||
@throw [OFInitializationFailedException
|
||||
newWithClass: isa];
|
||||
|
||||
target = [[OFString alloc] initWithCString: buffer];
|
||||
target = [[OFString alloc]
|
||||
initWithCString: buffer
|
||||
encoding: OF_STRING_ENCODING_NATIVE];
|
||||
} @catch (id e) {
|
||||
[self release];
|
||||
@throw e;
|
||||
|
@ -213,8 +215,9 @@
|
|||
host: domain];
|
||||
|
||||
answer = [self allocMemoryWithSize: of_pagesize];
|
||||
answerLen = res_nsearch(&resState, [request cString], ns_c_in,
|
||||
ns_t_srv, answer, (int)of_pagesize);
|
||||
answerLen = res_nsearch(&resState, [request cStringWithEncoding:
|
||||
OF_STRING_ENCODING_NATIVE], ns_c_in, ns_t_srv, answer,
|
||||
(int)of_pagesize);
|
||||
|
||||
if ((answerLen == -1) && ((h_errno == HOST_NOT_FOUND) ||
|
||||
(h_errno == NO_DATA)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue