Add a FIXME about the bogosity of aio::ip_to_sbuf

This commit is contained in:
Brian Anderson 2011-08-29 11:29:25 -07:00 committed by Brian Anderson
parent c94d4cff03
commit 04928ed3f0

View File

@ -45,6 +45,9 @@ tag request {
type ctx = chan<request>;
fn ip_to_sbuf(ip: net::ip_addr) -> *u8 {
// FIXME: This is broken. We're creating a vector, getting a pointer
// to its buffer, then dropping the vector. On top of that, the vector
// created by istr::bytes is not null-terminated.
vec::to_ptr(istr::bytes(net::format_addr(ip)))
}