| Index: base/linux_util.cc
|
| diff --git a/base/linux_util.cc b/base/linux_util.cc
|
| index 67514696c5c2dc4f3244b2b060aed6760e6429fd..143d9193b2bf9c1a662ae7cac22b366d697971e5 100644
|
| --- a/base/linux_util.cc
|
| +++ b/base/linux_util.cc
|
| @@ -154,9 +154,9 @@ std::string GetLinuxDistro() {
|
| base::GetAppOutput(CommandLine(argv), &output);
|
| if (output.length() > 0) {
|
| // lsb_release -d should return: Description:<tab>Distro Info
|
| - static const std::string field = "Description:\t";
|
| - if (output.compare(0, field.length(), field) == 0) {
|
| - SetLinuxDistro(output.substr(field.length()));
|
| + const char field[] = "Description:\t";
|
| + if (output.compare(0, strlen(field), field) == 0) {
|
| + SetLinuxDistro(output.substr(strlen(field)));
|
| }
|
| }
|
| distro_state_singleton->CheckFinished();
|
|
|