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:
parent
56270ee1c9
commit
03423585a4
@ -259,7 +259,7 @@ private:
|
|||||||
error = reader->ReadData(offset, fDataBuffer, toCopy);
|
error = reader->ReadData(offset, fDataBuffer, toCopy);
|
||||||
if (error != B_OK) {
|
if (error != B_OK) {
|
||||||
fprintf(stderr, "Error: Failed to read data: %s\n",
|
fprintf(stderr, "Error: Failed to read data: %s\n",
|
||||||
strerror(errno));
|
strerror(error));
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user