bugfix in the ordering of strings in libgu

This commit is contained in:
kr.angelov
2013-09-17 19:05:54 +00:00
parent b6ba5e7493
commit 016721d676

View File

@@ -475,9 +475,9 @@ gu_string_cmp(GuString s1, GuString s2)
if (sz1 == i && i == sz2)
break;
if (sz1 < i)
if (sz1 <= i)
return -1;
if (i > sz2)
if (i >= sz2)
return 1;
if (src1[i] > src2[i])