Commit 77029f7f authored by Dawit Alemayehu's avatar Dawit Alemayehu
Browse files

sizeof -> strlen

parent 04b6451e
......@@ -92,7 +92,7 @@ static QString ftpCleanPath(const QString& path)
if (path.endsWith(QLatin1String(";type=A"), Qt::CaseInsensitive) ||
path.endsWith(QLatin1String(";type=I"), Qt::CaseInsensitive) ||
path.endsWith(QLatin1String(";type=D"), Qt::CaseInsensitive)) {
return path.left((path.length() - sizeof(";type=")));
return path.left((path.length() - strlen(";type=X")));
return path;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment