Commit 29472d27 authored by Luca Giambonini's avatar Luca Giambonini

fix segmentation fault issue FS#892

http://chakraos.org/reviewboard/r/89/
parent 6271c521
......@@ -158,7 +158,7 @@ int compare_versions(QString const& a, QString const& b)
if (!conversion1 || !conversion2) {
for (int i = 0; i != i1->length(); ++i) {
if (i2->length() > i && i1->at(i) != i2->at(i))
return i1[i].toAscii() > i2[i].toAscii() ? 1 : -1;
return i1->at(i).toAscii() > i2->at(i).toAscii() ? 1 : -1;
p1 = i1->mid(i + 1).toInt(&conversion1);
p2 = i2->mid(i + 1).toInt(&conversion2);
......
Markdown is supported
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