Minor cleanup

This commit is contained in:
Eelco Dolstra
2017-05-01 17:30:17 +02:00
parent deac171925
commit 3e4bdfedee
+2 -2
View File
@@ -1078,9 +1078,9 @@ bool statusOk(int status)
}
bool hasPrefix(const string & s, const string & suffix)
bool hasPrefix(const string & s, const string & prefix)
{
return s.compare(0, suffix.size(), suffix) == 0;
return s.compare(0, prefix.size(), prefix) == 0;
}