UPD: Use g_strstr_len function

This commit is contained in:
Alexander Koblov 2014-02-16 09:09:19 +00:00
commit e0e693ce95

View file

@ -125,7 +125,7 @@ begin
if not Result then
AMessage:= FormatMessage
else try
AChar:= g_strrstr(AContents, DESKTOP_KEY_KDE_BUG);
AChar:= g_strstr_len(AContents, ALength, DESKTOP_KEY_KDE_BUG);
if Assigned(AChar) then AChar^:= '#';
Result:= g_key_file_load_from_data(FGKeyFile, AContents, ALength, G_KEY_FILE_NONE, @AError);
if not Result then AMessage:= FormatMessage;