mozilla/rust — pull request #8296 by erickt (2013-08-05 01:39:46+00:00)
Title: Remove str trailing nulls

This PR fixes #7235 and #3371, which removes trailing nulls from `str` types. Instead, it replaces the creation of c strings with a new type, `std::c_str::CString`, which wraps a malloced byte array, and respects:

* No interior nulls
* Ends with a trailing null