Skip to content

Commit

Permalink
Merge pull request #30811 from neitsa/fix/android_system_version
Browse files Browse the repository at this point in the history
Add missing conversion from std::string to char*.
  • Loading branch information
ZhilkinSerg authored May 24, 2019
2 parents 2660bc3 + 707c506 commit a036fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ static std::string android_version()
};

for( const auto &entry : system_properties ) {
int len = __system_property_get( entry.first, &buffer[0] );
int len = __system_property_get( entry.first.c_str(), &buffer[0] );
std::string value;
if( len <= 0 ) {
// failed to get the property
Expand Down

0 comments on commit a036fae

Please sign in to comment.