diff -r 4119185b56ca -r 1f15c52c11f6 src/toolsets/filetoolset.cpp --- 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); } }