Browse files

CrashReporter: Fix compile error with older Qt versions.

  • Loading branch information...
1 parent 43cd2ab commit 5bb698c86b2378248d17294666782d682232eb1d @dscharrer dscharrer committed May 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 tools/crashreporter/ErrorReport.cpp
View
2 tools/crashreporter/ErrorReport.cpp
@@ -176,7 +176,7 @@ static QString getOutputOf(const char * command) {
QByteArray result;
while(!feof(pipe)) {
if(size_t count = fread(buffer, 1, ARRAY_SIZE(buffer), pipe)) {
- result.append(buffer, count);
+ result.append(QByteArray(buffer, count));
}
}
pclose(pipe);

0 comments on commit 5bb698c

Please sign in to comment.