- Package:
- manpages-dev
- Source:
- manpages
- Submitter:
- Florian Weimer
- Date:
- 2015-03-08 19:45:43 UTC
- Severity:
- normal
Please document that the res_search function return the *actual* length of the response, which may be greater than the length of the supplied buffer.
tag 309599 moreinfo
thanks
Does this bug still apply? The relevant section says:
The res_query(), res_search(), res_querydomain(),
res_mkquery() and res_send() functions return the length
of the response, or -1 if an error occurs.
Which seems accurate to me.
* Justin Pryzby: It is ambiguous. Does "length of the response" refer to the number of bytes actually written, or the number of bytes received?
Florian, Can you provide some supporting eveidence for this patch -- (simple) test code or a specific references in the glibs source? Cheers, Michael