diff --git a/Utils.cpp b/Utils.cpp index e4f473a..a9bddfa 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -211,7 +211,7 @@ static status_t readMetadata(const std::string& path, std::string& fsType, for (auto line : output) { // Extract values from blkid output, if defined const char* cline = line.c_str(); - char* start = strstr(cline, "TYPE="); + const char* start = strstr(cline, "TYPE="); if (start != nullptr && sscanf(start + 5, "\"%127[^\"]\"", value) == 1) { fsType = value; }