mongodb/mongo — pull request #114 by tadmarshall (2011-10-12 19:13:11+00:00)
Title: SERVER-4007 (reissue) -- use .c_str() instead of .data()

This is a reissue of my earlier fix. I'm trying to break them down into
bite-sized parts to make them easier to pull.

Use .c_str() instead of .data() if the loop is checking for 0 as terminator.