Incorrectly used errno instead of error.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34054 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-11-15 08:40:35 +00:00
parent 56270ee1c9
commit 03423585a4

View File

@ -259,7 +259,7 @@ private:
error = reader->ReadData(offset, fDataBuffer, toCopy);
if (error != B_OK) {
fprintf(stderr, "Error: Failed to read data: %s\n",
strerror(errno));
strerror(error));
return error;
}