Skip to content

Commit 4e1428c

Browse files
committed
---
yaml --- r: 5057 b: refs/heads/master c: 04928ed h: refs/heads/master i: 5055: 749fb47 v: v3
1 parent b7a1bba commit 4e1428c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: c94d4cff0314459f93e086b3ef0fd89f3f368f35
2+
refs/heads/master: 04928ed3f00e82d7d233d2b4d2a63440f098b279

trunk/src/lib/aio.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ tag request {
4545
type ctx = chan<request>;
4646

4747
fn ip_to_sbuf(ip: net::ip_addr) -> *u8 {
48+
// FIXME: This is broken. We're creating a vector, getting a pointer
49+
// to its buffer, then dropping the vector. On top of that, the vector
50+
// created by istr::bytes is not null-terminated.
4851
vec::to_ptr(istr::bytes(net::format_addr(ip)))
4952
}
5053

0 commit comments

Comments
 (0)