--- a/src/toolsets/filetoolset.cpp Sat Jan 28 13:49:09 2017 +0200 +++ b/src/toolsets/filetoolset.cpp Sat Jan 28 14:01:19 2017 +0200 @@ -158,7 +158,7 @@ { QString contents = obj->asText(); QByteArray data = contents.toUtf8(); - file.write(data, data.size()); + file.write(data, length(data)); file.write("\r\n", 2); } }