diff --git a/src/bin/package/command_extract.cpp b/src/bin/package/command_extract.cpp index 5684f4a929..8fa166ab25 100644 --- a/src/bin/package/command_extract.cpp +++ b/src/bin/package/command_extract.cpp @@ -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; }