Minor cleanup

This commit is contained in:
Eelco Dolstra 2017-05-01 17:28:19 +02:00
parent deac171925
commit 3e4bdfedee
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

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;
}