I suggest to use .c_str() rather than &some_string[0] here (2x).